Skip to content

Commit

Permalink
adjust style register page
Browse files Browse the repository at this point in the history
  • Loading branch information
12henbx committed Oct 18, 2023
1 parent 131505a commit 88ba58e
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class _RegisterPageState extends State<RegisterPage> {

@override
Widget build(BuildContext context) {
final size = MediaQuery.of(context).size;
return BlocListener<UserRegisterBloc, RegisterFormState>(
listener: (context, state) {
if (state is UserRegisterSuccessState) {
Expand Down Expand Up @@ -105,14 +106,22 @@ class _RegisterPageState extends State<RegisterPage> {
},
builder: (context, state) {
return ElevatedButton(
style: ElevatedButton.styleFrom(
fixedSize: Size(size.width, 45),
backgroundColor: Colors.black,
foregroundColor: Colors.white,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
),
onPressed: () {
if (state is! UserRegisterLoadingState) {
BlocProvider.of<UserRegisterBloc>(context)
.add(const FormSubmitEvent());
// context.go('/main');
}
},
child: Text('Daftar'),
child: Text('Daftar', style: TextStyle(fontWeight: FontWeight.w600),),
);
}),
],
Expand Down

0 comments on commit 88ba58e

Please sign in to comment.