-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
894 additions
and
4 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import 'package:get/instance_manager.dart'; | ||
import 'package:thirumathikart_app/controllers/login_controller.dart'; | ||
|
||
class LoginBindings extends Bindings { | ||
@override | ||
void dependencies() { | ||
Get.put(LoginController()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import 'package:get/instance_manager.dart'; | ||
import 'package:thirumathikart_app/controllers/register_controller.dart'; | ||
|
||
class RegisterBindings extends Bindings { | ||
@override | ||
void dependencies() { | ||
Get.put(RegisterController()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const data = [ | ||
'assets/banner/banner_1.png', | ||
'assets/banner/banner_2.png', | ||
'assets/banner/banner_3.png', | ||
'assets/banner/banner_4.png', | ||
'assets/banner/banner_5.png' | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import 'package:thirumathikart_app/models/product.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
List<Product> products = [ | ||
Product( | ||
id: 1, | ||
title: 'Fahion and Jewellery', | ||
image: 'assets/images/bag_1.png', | ||
color: const Color(0xFF3D82AE)), | ||
Product( | ||
id: 2, | ||
title: 'Handicraft', | ||
image: 'assets/images/bag_2.png', | ||
color: const Color(0xFFD3A984)), | ||
Product( | ||
id: 3, | ||
title: 'Beauty and Healthcare', | ||
image: 'assets/images/bag_3.png', | ||
color: const Color(0xFF989493)), | ||
Product( | ||
id: 4, | ||
title: 'Clothing', | ||
image: 'assets/images/bag_4.png', | ||
color: const Color(0xFFE6B398)), | ||
Product( | ||
id: 5, | ||
title: 'Food', | ||
image: 'assets/images/bag_5.png', | ||
color: const Color(0xFFFB7883)), | ||
Product( | ||
id: 6, | ||
title: 'Grocery', | ||
image: 'assets/images/bag_6.png', | ||
color: const Color(0xFFAEAEAE), | ||
), | ||
Product( | ||
id: 7, | ||
title: 'Office Code', | ||
image: 'assets/images/bag_7.png', | ||
color: const Color.fromARGB(255, 40, 153, 61), | ||
), | ||
Product( | ||
id: 8, | ||
title: 'Organic Fruits & Vegetables', | ||
image: 'assets/images/bag_8.png', | ||
color: const Color.fromARGB(255, 98, 46, 130), | ||
), | ||
Product( | ||
id: 9, | ||
title: 'Others', | ||
image: 'assets/images/bag_9.png', | ||
color: const Color.fromARGB(255, 75, 168, 205), | ||
), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import 'package:thirumathikart_app/models/textfield.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
List<TextValues> values = [ | ||
TextValues( | ||
hintword: 'First Name', texttype: TextInputType.name, istrue: false), | ||
TextValues( | ||
hintword: 'Last Name', texttype: TextInputType.name, istrue: false), | ||
TextValues( | ||
hintword: 'Enter Email', | ||
texttype: TextInputType.emailAddress, | ||
istrue: false), | ||
TextValues( | ||
hintword: 'Enter Password', | ||
texttype: TextInputType.visiblePassword, | ||
istrue: true), | ||
TextValues( | ||
hintword: 'Reenter Password', | ||
texttype: TextInputType.visiblePassword, | ||
istrue: true), | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import 'package:get/get_state_manager/get_state_manager.dart'; | ||
|
||
class LoginController extends GetxController {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import 'package:get/get_state_manager/get_state_manager.dart'; | ||
|
||
class RegisterController extends GetxController {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class Product { | ||
final String? image, title; | ||
final int? id; | ||
final Color? color; | ||
Product({ | ||
this.id, | ||
this.image, | ||
this.title, | ||
this.color, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class TextValues { | ||
final String? hintword; | ||
final TextInputType? texttype; | ||
final bool? istrue; | ||
TextValues({ | ||
this.hintword, | ||
this.texttype, | ||
this.istrue, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:thirumathikart_app/widgets/button/login_button.dart'; | ||
|
||
class LoginPage extends StatelessWidget { | ||
const LoginPage({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
double deviceHeight = MediaQuery.of(context).size.height; | ||
return Scaffold( | ||
body: SingleChildScrollView( | ||
child: ConstrainedBox( | ||
constraints: BoxConstraints( | ||
minHeight: deviceHeight, | ||
), | ||
child: Container( | ||
padding: const EdgeInsets.all(20), | ||
decoration: const BoxDecoration( | ||
color: Color.fromRGBO(251, 242, 207, 1), | ||
), | ||
child: Center( | ||
child: Card( | ||
elevation: 12, | ||
shape: RoundedRectangleBorder( | ||
side: const BorderSide( | ||
color: Colors.black12, | ||
), | ||
borderRadius: BorderRadius.circular(10.0), | ||
), | ||
child: Padding( | ||
padding: const EdgeInsets.all(10), | ||
child: Column(children: <Widget>[ | ||
const SizedBox( | ||
height: 30, | ||
), | ||
Center( | ||
child: Image.asset( | ||
'assets/tklogo.jpeg', | ||
height: 200, | ||
), | ||
), | ||
Container( | ||
margin: const EdgeInsets.symmetric( | ||
horizontal: 10), | ||
child: Column(children: <Widget>[ | ||
Container( | ||
margin: const EdgeInsets.only( | ||
top: 15, left: 10, right: 10), | ||
decoration: BoxDecoration( | ||
border: Border.all( | ||
color: Colors.black, | ||
width: 1, | ||
), | ||
borderRadius: | ||
BorderRadius.circular(10)), | ||
child: Material( | ||
color: Colors.white, | ||
shadowColor: Colors.black, | ||
borderRadius: | ||
const BorderRadius.all( | ||
Radius.circular(10)), | ||
elevation: 2, | ||
child: Center( | ||
child: TextFormField( | ||
decoration: | ||
const InputDecoration( | ||
hintText: 'Enter Number', | ||
border: InputBorder.none, | ||
contentPadding: | ||
EdgeInsets.only( | ||
left: 20.0, | ||
right: 20), | ||
), | ||
keyboardType: | ||
TextInputType.number, | ||
), | ||
), | ||
), | ||
), | ||
Container( | ||
margin: const EdgeInsets.only( | ||
top: 20, left: 10, right: 10), | ||
decoration: BoxDecoration( | ||
border: Border.all( | ||
color: Colors.black, | ||
width: 1, | ||
), | ||
borderRadius: | ||
BorderRadius.circular(10), | ||
), | ||
child: Material( | ||
color: Colors.white, | ||
shadowColor: Colors.black, | ||
borderRadius: | ||
const BorderRadius.all( | ||
Radius.circular(10), | ||
), | ||
elevation: 2, | ||
child: Expanded( | ||
child: Center( | ||
child: TextFormField( | ||
obscureText: true, | ||
decoration: | ||
const InputDecoration( | ||
hintText: 'Enter Password', | ||
border: InputBorder.none, | ||
contentPadding: | ||
EdgeInsets.only( | ||
left: 20.0, | ||
right: 20), | ||
), | ||
), | ||
), | ||
), | ||
), | ||
), | ||
const LoginButton(), | ||
])), | ||
const SizedBox( | ||
height: 70, | ||
), | ||
Container( | ||
margin: const EdgeInsets.only(bottom: 40), | ||
child: Column( | ||
mainAxisAlignment: | ||
MainAxisAlignment.center, | ||
children: [ | ||
InkWell( | ||
onTap: () {}, | ||
child: const Text( | ||
'Register Now', | ||
style: TextStyle( | ||
fontSize: 15, | ||
color: Color.fromARGB( | ||
255, 10, 49, 176), | ||
fontFamily: 'Avenir', | ||
fontWeight: FontWeight.w500, | ||
fontStyle: | ||
FontStyle.normal), | ||
), | ||
), | ||
const SizedBox( | ||
height: 10, | ||
), | ||
InkWell( | ||
onTap: () {}, | ||
child: const Text( | ||
'Forgot Password', | ||
style: TextStyle( | ||
fontSize: 15, | ||
color: Color.fromARGB( | ||
255, 10, 49, 176), | ||
fontFamily: 'Avenir', | ||
fontWeight: | ||
FontWeight.w500, | ||
fontStyle: | ||
FontStyle.normal), | ||
)) | ||
])) | ||
])))))))); | ||
} | ||
} |
Oops, something went wrong.