update
This commit is contained in:
parent
ecc427c958
commit
ee1884790a
11 changed files with 113 additions and 127 deletions
|
|
@ -5,6 +5,7 @@ import 'package:gap/gap.dart';
|
|||
import 'package:pharmacy_mobile/auth/auth_service.dart';
|
||||
import 'package:pharmacy_mobile/widgets/button_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/input_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/page_background_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/text_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/title_widget.dart';
|
||||
import 'package:quickalert/quickalert.dart';
|
||||
|
|
@ -67,19 +68,7 @@ class _LoginPageState extends State<LoginPage> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: Container(
|
||||
alignment: Alignment.center,
|
||||
height: MediaQuery.of(context).size.height,
|
||||
decoration: const BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
colors: [
|
||||
Color.fromRGBO(34, 51, 69, 1),
|
||||
Color.fromRGBO(22, 32, 44, 1),
|
||||
],
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
),
|
||||
),
|
||||
body: PageBackgroundWidget(
|
||||
child: Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
|
|
@ -107,7 +96,11 @@ class _LoginPageState extends State<LoginPage> {
|
|||
_signIn();
|
||||
}
|
||||
},
|
||||
child: InputWidget(label: 'Password', controller: _passwordController, password: true,),
|
||||
child: InputWidget(
|
||||
label: 'Password',
|
||||
controller: _passwordController,
|
||||
password: true,
|
||||
),
|
||||
),
|
||||
const Gap(24),
|
||||
// TextButton(onPressed: () => {_signIn()}, child: const Text('Login'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue