This commit is contained in:
2025-04-10 09:26:52 +07:00
parent d4a6e236a0
commit 30ee4540ba
59 changed files with 307 additions and 341 deletions

View File

@@ -44,31 +44,27 @@ class _LoginScreenState extends State<LoginScreen> {
Widget build(BuildContext context) {
return Scaffold(
body: SharedBackground(
child: SingleChildScrollView(
child: SizedBox(
height: MediaQuery.sizeOf(context).height,
width: MediaQuery.sizeOf(context).width,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
Column(
children: [
const Spacer(),
Expanded(
flex: 4,
child: Image.asset(
ImageConstants.instance.getImage("logo"),
height: context.dynamicHeight(0.2),
),
const SizedBox(height: 100.0,),
Image.asset(
ImageConstants.instance.getImage("lo-go"),
height: context.dynamicHeight(0.1),
),
const Spacer(),
],
),
SizedBox(
height: context.mediumValue,
),
StreamBuilder<Map<String, dynamic>>(
stream: loginBloc.streamLoginRequest,
builder: (context, loginResquestSnapshot) {
return Padding(
padding: context.paddingLow,
padding: context.paddingMediumHorizontal,
child: Form(
key: _formKey,
child: Column(
@@ -144,21 +140,26 @@ class _LoginScreenState extends State<LoginScreen> {
},
),
SizedBox(
height: context.lowValue,
height: context.mediumValue,
),
ElevatedButton(
style: const ButtonStyle(
backgroundColor:
WidgetStatePropertyAll(Colors.blue),
foregroundColor:
WidgetStatePropertyAll(Colors.white),
SizedBox(
width: MediaQuery.sizeOf(context).width,
height: 50.0,
child: ElevatedButton(
style: const ButtonStyle(
backgroundColor:
WidgetStatePropertyAll(Colors.blue),
foregroundColor:
WidgetStatePropertyAll(Colors.white),
),
onPressed: () {
validate();
},
child: Text(
appLocalization(context).login_button_content),
),
onPressed: () {
validate();
},
child: Text(
appLocalization(context).login_button_content),
),
const SizedBox(height: 100.0,)
],
),
),

View File

@@ -109,6 +109,7 @@ class _MyAppState extends State<MyApp> {
return MaterialApp.router(
theme: themeSnapshot.data,
routerConfig: router,
debugShowCheckedModeBanner: false,
localizationsDelegates: AppLocalizations.localizationsDelegates,
supportedLocales: AppLocalizations.supportedLocales,
locale: languageSnapshot.data,