Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
kaarthik21 authored Oct 10, 2022
2 parents c6274c5 + fb4857f commit a6e5214
Show file tree
Hide file tree
Showing 40 changed files with 894 additions and 4 deletions.
Binary file added assets/banner/banner_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/banner/banner_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/banner/banner_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/banner/banner_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/banner/banner_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bag_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bag_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bag_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bag_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bag_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bag_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bag_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bag_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bag_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions lib/bindings/login_binding.dart
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());
}
}
9 changes: 9 additions & 0 deletions lib/bindings/register_binding.dart
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());
}
}
14 changes: 14 additions & 0 deletions lib/config/navigations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ import 'package:get/get_navigation/src/routes/get_route.dart';
import 'package:thirumathikart_app/bindings/auth_binding.dart';
import 'package:thirumathikart_app/bindings/home_bindings.dart';
import 'package:thirumathikart_app/bindings/splash_binding.dart';
import 'package:thirumathikart_app/bindings/login_binding.dart';
import 'package:thirumathikart_app/bindings/register_binding.dart';
import 'package:thirumathikart_app/views/auth.dart';
import 'package:thirumathikart_app/views/home.dart';
import 'package:thirumathikart_app/views/splash.dart';
import 'package:thirumathikart_app/views/about.dart';
import 'package:thirumathikart_app/views/feedback.dart';
import 'package:thirumathikart_app/views/contact.dart';
import 'package:thirumathikart_app/views/login.dart';
import 'package:thirumathikart_app/views/register.dart';
import 'package:thirumathikart_app/constants/navigation_routes.dart';

class NavigationPages {
Expand Down Expand Up @@ -83,5 +87,15 @@ class NavigationPages {
page: () => const HomePage(),
binding: HomeBindings(),
),
GetPage(
name: NavigationRoutes.loginRoute,
page: () => const LoginPage(),
binding: LoginBindings(),
),
GetPage(
name: NavigationRoutes.registerRoute,
page: () => const RegisterPage(),
binding: RegisterBindings(),
),
];
}
1 change: 1 addition & 0 deletions lib/config/themes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ class AppTheme {
static Color chakra = const Color.fromARGB(255, 13, 13, 173);
static Color navColor = const Color(0xFFF8BBD0);
static Color navHighlight = const Color(0xFFFCE4EC);
static Color subtle = const Color.fromRGBO(251, 242, 207, 1);
}
7 changes: 7 additions & 0 deletions lib/constants/banner_constants.dart
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'
];
54 changes: 54 additions & 0 deletions lib/constants/homeproduct_list.dart
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),
),
];
2 changes: 2 additions & 0 deletions lib/constants/navigation_routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ class NavigationRoutes {
static String helpRoute = '/help';
static String tourRoute = '/tour';
static String exploreRoute = '/explore';
static String loginRoute = '/login';
static String registerRoute = '/register';
}
21 changes: 21 additions & 0 deletions lib/constants/textfield_constants.dart
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),
];
3 changes: 3 additions & 0 deletions lib/controllers/login_controller.dart
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 {}
3 changes: 3 additions & 0 deletions lib/controllers/register_controller.dart
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 {}
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Thirumathikart extends StatelessWidget {
textTheme:
GoogleFonts.brawlerTextTheme(Theme.of(context).textTheme)),
debugShowCheckedModeBanner: false,
initialRoute: NavigationRoutes.main,
initialRoute: NavigationRoutes.loginRoute,
getPages: NavigationPages.getPages(),
);
}
13 changes: 13 additions & 0 deletions lib/models/product.dart
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,
});
}
12 changes: 12 additions & 0 deletions lib/models/textfield.dart
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,
});
}
7 changes: 4 additions & 3 deletions lib/views/home.dart
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
import 'package:flutter/material.dart';
import 'package:thirumathikart_app/widgets/home/appbar_home.dart';
import 'package:thirumathikart_app/widgets/home/home_body.dart';
import 'package:get/get_state_manager/get_state_manager.dart';
import 'package:thirumathikart_app/controllers/home_controller.dart';
import 'package:thirumathikart_app/widgets/NavBar/nav_drawer.dart';
import 'package:thirumathikart_app/widgets/app_bar.dart';

class HomePage extends GetView<HomeController> {
const HomePage({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) => Scaffold(
appBar: appBar('Home'),
appBar: const BuildAppBar(),
drawer: const NavWidget(),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
Text('Home Page'),
Body(),
],
),
));
Expand Down
162 changes: 162 additions & 0 deletions lib/views/login.dart
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),
))
]))
]))))))));
}
}
Loading

0 comments on commit a6e5214

Please sign in to comment.