createGroupBuilder static method
- BuildContext context,
- ChatsTabController c
Builds a BottomPaddedRow for creating a Chat-group.
Implementation
static Widget createGroupBuilder(BuildContext context, ChatsTabController c) {
final style = Theme.of(context).style;
return BottomPaddedRow(
spacer: (_) {
return Container(
decoration: BoxDecoration(color: style.colors.onBackgroundOpacity13),
width: 1,
height: 24,
);
},
children: [
WidgetButton(
onPressed: c.closeGroupCreating,
child: Center(
child: Padding(
padding: const EdgeInsets.fromLTRB(10, 6.5, 10, 6.5),
child: Text(
'btn_cancel'.l10n,
style: style.fonts.normal.regular.primary,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
),
),
),
WidgetButton(
onPressed: c.createGroup,
child: Center(
child: Padding(
padding: const EdgeInsets.fromLTRB(10, 6.5, 10, 6.5),
child: Text(
'btn_create'.l10n,
style: style.fonts.normal.regular.primary,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
),
),
),
],
);
}