Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,23 +85,21 @@ class GroupCreateFormState extends State<GroupCreateForm> {
return previous.participants != current.participants;
}, builder: (context, state) {
return Visibility(
visible: !keyboardIsOpenCtx(context),
child: Visibility(
visible: state.participants.isValid,
child: IntrinsicWidth(
child: ButtonForm(
onPressed: () {
_showGroupDetails(context);
},
backgroundColor: WidgetStatePropertyAll(
state.participants.isValid
? slateBlue
: whiteAluminum),
foregroundColor: WidgetStatePropertyAll(
state.participants.isValid ? white : gainsborough),
hint: 'Next'),
),
));
visible: !keyboardIsOpenCtx(context) && state.participants.isValid,
child: IntrinsicWidth(
child: ButtonForm(
onPressed: () {
_showGroupDetails(context);
},
backgroundColor: WidgetStatePropertyAll(
state.participants.isValid ? slateBlue : whiteAluminum),
foregroundColor: WidgetStatePropertyAll(
state.participants.isValid ? white : gainsborough),
text: 'Next',
textStyle: const TextStyle(
fontWeight: FontWeight.w600, fontSize: 16)),
),
);
}));
}
}
Expand Down Expand Up @@ -133,7 +131,9 @@ void _showGroupDetails(BuildContext context) {
},
backgroundColor: const WidgetStatePropertyAll(slateBlue),
foregroundColor: const WidgetStatePropertyAll(white),
hint: 'Create'),
text: 'Create',
textStyle: const TextStyle(
fontWeight: FontWeight.w600, fontSize: 16)),
)),
)));
}
Expand Down Expand Up @@ -232,7 +232,7 @@ class _GroupNameInput extends StatelessWidget {
onChanged: (groupname) =>
context.read<GroupBloc>().add(GroupnameChanged(groupname)),
iconData: Icons.group,
hint: 'Groupname',
text: 'Groupname',
error: state.groupname.displayError != null
? state.groupname.displayError == GroupnameValidationError.short
? 'Group name is too short'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AvatarLetterIcon extends StatelessWidget {
required this.name,
this.lastName,
super.key,
this.size = const Size(55, 60),
this.size = const Size(55, 55),
this.padding = EdgeInsets.zero,
this.backgroundColor = black,
this.textColor = dullGray,
Expand Down
Loading