start minimal

This commit is contained in:
Mohamed Nouffer
2023-06-02 10:50:56 +05:30
parent 08332d45d4
commit a358f65853
54 changed files with 467 additions and 1327 deletions

View File

@ -0,0 +1,67 @@
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:rogapp/common/ui/widgets/uis.dart';
import 'package:rogapp/routes/app_pages.dart';
import 'package:rogapp/screens/auth/common/uis/auth_text_field.dart';
import 'package:rogapp/screens/auth/common/uis/rounded_small_button.dart';
import 'package:rogapp/theme/theme.dart';
class LoginScreen extends StatelessWidget {
final emailController = TextEditingController();
final passwordController = TextEditingController();
LoginScreen({super.key});
void login(){
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: UIs.appBar(),
body: Center(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
children: [
Container(
height: MediaQuery.of(context).size.height/6,
decoration: const BoxDecoration(
image:DecorationImage(image: AssetImage('assets/images/login_image.jpg'))
),
),
const SizedBox(height: 5,),
AuthTextField(controller: emailController, hinttext: 'Email',),
const SizedBox(height: 25,),
AuthTextField(controller: passwordController, hinttext: 'Password',),
const SizedBox(height: 40,),
Align(
alignment: Alignment.topRight,
child: RoundedSmallButton(onTap: login, label: 'Done',),
),
const SizedBox(height: 40,),
RichText(
text: TextSpan(
text: "Don't have an account?",
style: const TextStyle(fontSize: 16, color: Pallete.BROWN_COLOR),
children: [
TextSpan(
text: " Signup",
style: const TextStyle(color: Pallete.BLUE_COLOR, fontSize: 16),
recognizer: TapGestureRecognizer()..onTap = (){
Get.toNamed(AppPages.S_REGISTER);
},
),
]
)
)
],
),
),
),
)
);
}
}