Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: product detail page UI design #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "hunger",
"request": "launch",
"type": "dart"
},
{
"name": "hunger (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "hunger (release mode)",
"request": "launch",
"type": "dart",
"flutterMode": "release"
}
]
}
Binary file added assets/blackforest.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/cake-img.jpg
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/cake1.jpeg
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/cake2.jpeg
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/cake3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions lib/app/core/app_config/app_colors.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import 'package:flutter/material.dart';

class AppColors {
static const rustedOrange = Color(0xfff94700);
static const skyBlue = Color(0xff05d2e3);
static const white = Color(0xffffffff);
static const oliveGreen = Color(0xff44970f);
static const lightGrey = Color(0xffcac4cd);
static const grey = Color(0xffa1a1a1);
static const oliveGreenShade = Color(0xffccd890);
static const rupeeColor = Color(0xff007d1d);
static const rupeeBgColor = Color(0xff007d1d);
static const ratingColor = Color(0xffcf9e05);
static const linkTextColor = Color(0xff00315b);
static const blackColor = Color(0xff0a0a0a);
}
23 changes: 23 additions & 0 deletions lib/app/core/app_config/app_sizes.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
class AppSizes {
static const x1_00 = 8.0;
static const x1_62 = 5;
static const x1_12 = 9.0;
static const x1_25 = 10.0;
static const x1_50 = 12.0;
static const x1_75 = 14.0;
static const x1_87 = 15.0;
static const x2_00 = 16.0;
static const x2_37 = 19.0;
static const x2_5 = 20.0;
static const x2_87 = 23.0;
static const x3_12 = 25.0;
static const x4_37 = 35.0;
static const x5_00 = 40.0;
static const x5_25 = 42.0;
static const x5_62 = 45.0;
static const x6_25 = 50.0;
static const x12_5 = 100.0;
static const x25_00 = 200.0;
static const x42_00 = 420.0;
static const x37_00 = 300.0;
}
27 changes: 14 additions & 13 deletions lib/app/modules/home/controllers/home_controller.dart
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import 'package:get/get.dart';

class HomeController extends GetxController {
//TODO: Implement HomeController

final count = 0.obs;
@override
void onInit() {
super.onInit();
}
}
// @override
// void onInit() {
// super.onInit();
// }

@override
void onReady() {
super.onReady();
}
// @override
// void onReady() {
// super.onReady();
// }

// @override
// void onClose() {}
// void increment() => count.value++;
// }

@override
void onClose() {}
void increment() => count.value++;
}
6 changes: 4 additions & 2 deletions lib/app/modules/home/views/home_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ import 'package:get/get.dart';
import '../controllers/home_controller.dart';

class HomeView extends GetView<HomeController> {
const HomeView({super.key});

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('HomeView'),
title: const Text('HomeView'),
centerTitle: true,
),
body: Center(
body: const Center(
child: Text(
'HomeView is working',
style: TextStyle(fontSize: 20),
Expand Down
12 changes: 0 additions & 12 deletions lib/app/modules/login/bindings/login_binding.dart

This file was deleted.

20 changes: 0 additions & 20 deletions lib/app/modules/login/controllers/login_controller.dart

This file was deleted.

Empty file.
23 changes: 0 additions & 23 deletions lib/app/modules/login/views/login_view.dart

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import 'package:get/get.dart';

import '../controllers/product_details_controller.dart';

class ProductDetailsBinding extends Bindings {
@override
void dependencies() {
Get.lazyPut<ProductDetailsController>(
() => ProductDetailsController(),
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import 'package:get/get.dart';

class ProductDetailsController extends GetxController {
final favoriteClicked = false.obs;
final productAdded = 0.obs;
final productPrice = 0.obs;
final productCart = 0.obs;
}
Loading