Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 79110c4

Browse files
📝 Update Header
1 parent 20064d1 commit 79110c4

File tree

22 files changed

+192
-95
lines changed

22 files changed

+192
-95
lines changed

‎.vscode/settings.json‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"dart.lineLength": 100,
3+
"editor.formatOnSave": true,
4+
"editor.formatOnType": true,
5+
"cSpell.words": [
6+
"toats"
7+
],
8+
"autoHeader": {
9+
"format": {
10+
"startWith": "/*",
11+
"middleWith": "*",
12+
"endWith": "*/",
13+
"headerPrefix": "@"
14+
},
15+
"header": {
16+
"Author": "Flutter Journey 🎯 <flutterjourney.org@gmail.com>",
17+
"Created": {
18+
"type": "createTime",
19+
"format": "YYYY-MM-DD HH:mm:ss"
20+
},
21+
"Message": "You look very hardworking 👨‍💻. Keep focusing on your goals. 🌤️"
22+
}
23+
}
24+
}

‎drinks_selection_screen/lib/data.dart‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <flutterjourney.org@gmail.com>
3+
* @ Created: 2024年12月06日 08:14:53
4+
* @ Message: You look very hardworking 👨‍💻. Keep focusing on your goals. 🌤️
5+
*/
6+
17
import 'package:flutter/material.dart';
28

39
const double scaleFraction = 0.7;

‎drinks_selection_screen/lib/home_screen.dart‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <flutterjourney.org@gmail.com>
3+
* @ Created: 2024年12月06日 08:14:53
4+
* @ Message: You look very hardworking 👨‍💻. Keep focusing on your goals. 🌤️
5+
*/
6+
17
import 'package:flutter/material.dart';
28
import 'package:drinks_selection_screen/widgets/image_carousel.dart';
39
import 'package:drinks_selection_screen/widgets/logo_widget.dart';

‎drinks_selection_screen/lib/main.dart‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <flutterjourney.org@gmail.com>
3+
* @ Created: 2024年12月06日 08:14:53
4+
* @ Message: You look very hardworking 👨‍💻. Keep focusing on your goals. 🌤️
5+
*/
6+
17
import 'package:flutter/material.dart';
28

39
import 'home_screen.dart';

‎drinks_selection_screen/lib/widgets/image_carousel.dart‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <flutterjourney.org@gmail.com>
3+
* @ Created: 2024年12月06日 08:14:53
4+
* @ Message: You look very hardworking 👨‍💻. Keep focusing on your goals. 🌤️
5+
*/
6+
17
import 'dart:math';
28

39
import 'package:flutter/material.dart';

‎drinks_selection_screen/lib/widgets/logo_widget.dart‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <flutterjourney.org@gmail.com>
3+
* @ Created: 2024年12月06日 08:14:53
4+
* @ Message: You look very hardworking 👨‍💻. Keep focusing on your goals. 🌤️
5+
*/
6+
17
import 'package:flutter/material.dart';
28

39
class LogoWidget extends StatelessWidget {
Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <flutterjourney.org@gmail.com>
3+
* @ Created: 2024年12月06日 08:14:47
4+
* @ Message: You look very hardworking 👨‍💻. Keep focusing on your goals. 🌤️
5+
*/
6+
17
class Item {
28
final String image;
39
final String title;
@@ -9,40 +15,24 @@ class Item {
915
}
1016

1117
List<Item> items = [
12-
Item(
13-
"assets/0002624_seafood-pesto_300.png",
14-
"Pizza Hải Sản Pesto Xanh",
15-
"Tôm, thanh cua, mực và bông cải xanh tươi ngon trên nền sốt Pesto Xanh",
16-
true,
17-
"169.000"),
18+
Item("assets/0002624_seafood-pesto_300.png", "Pizza Hải Sản Pesto Xanh",
19+
"Tôm, thanh cua, mực và bông cải xanh tươi ngon trên nền sốt Pesto Xanh", true, "169.000"),
1820
Item("assets/0002212_sf-cocktail-test_300.png", "Pizza Tôm Cocktail",
1921
"Tôm với nấm, dứa, cà chua và sốt Thousand Island.", false, "159.000"),
2022
Item("assets/0002211_tropical-sf-test_300.png", "Pizza Hải Sản Nhiệt Đới",
2123
"Tôm, nghêu, mực cua, dứa với sốt Thousand Island.", true, "159.000"),
2224
Item("assets/0002218_sup-deluxe_300.png", "Pizza Hải Sản Cao Cấp",
2325
"Tôm, cua, mực và nghêu với sốt Marinara.", false, "159.000"),
24-
Item(
25-
"assets/0002219_meat-deluxe_300.png",
26-
"Pizza 5 Loại Thịt Đặc Biệt Và Rau Củ",
27-
"Xúc xích bò, giăm bông, thịt xông khói,...và cả thế giới rau phong phú.",
28-
true,
29-
"149.000"),
30-
Item(
31-
"assets/0003536_aloha_300.png",
32-
"Pizza Aloha",
33-
"Thịt nguội, xúc xích và dứa hòa quyện với sốt Thousand Island.",
34-
false,
35-
"149.000"),
36-
Item(
37-
"assets/0002221_bacon-sup_300.png",
38-
"Pizza Thịt Xông Khói",
39-
"Thịt giăm bông, thịt xông khói và hai loại rau của ớt xanh, cà chua.",
40-
false,
41-
"149.000"),
26+
Item("assets/0002219_meat-deluxe_300.png", "Pizza 5 Loại Thịt Đặc Biệt Và Rau Củ",
27+
"Xúc xích bò, giăm bông, thịt xông khói,...và cả thế giới rau phong phú.", true, "149.000"),
28+
Item("assets/0003536_aloha_300.png", "Pizza Aloha",
29+
"Thịt nguội, xúc xích và dứa hòa quyện với sốt Thousand Island.", false, "149.000"),
30+
Item("assets/0002221_bacon-sup_300.png", "Pizza Thịt Xông Khói",
31+
"Thịt giăm bông, thịt xông khói và hai loại rau của ớt xanh, cà chua.", false, "149.000"),
4232
Item("assets/0002222_ca-bacon_300.png", "Pizza Thịt Nguội Kiểu Canada",
4333
"Sự kết hợp giữa thịt nguội và bắp ngọt.", true, "149.000"),
4434
Item("assets/0002223_ck-trio_300.png", "Pizza Gà Nướng 3 Vị",
4535
"Gà nướng, gà bơ tỏi và gà ướp sốt nấm.", false, "149.000"),
46-
Item("assets/0002228_ck-caldo_300.png", "Pizza Gà Nướng Dứa",
47-
"Thịt gà mang vị ngọt của dứa.", false, "139.000"),
36+
Item("assets/0002228_ck-caldo_300.png", "Pizza Gà Nướng Dứa","Thịt gà mang vị ngọt của dứa.",
37+
false, "139.000"),
4838
];

‎foods_selection_screen/lib/main.dart‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <flutterjourney.org@gmail.com>
3+
* @ Created: 2024年12月06日 08:14:47
4+
* @ Message: You look very hardworking 👨‍💻. Keep focusing on your goals. 🌤️
5+
*/
6+
17
import 'package:flutter/material.dart';
28
import 'package:foods_selection_screen/presentation/home/home_screen.dart';
39

‎foods_selection_screen/lib/presentation/detail/detail_screen.dart‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <flutterjourney.org@gmail.com>
3+
* @ Created: 2024年12月06日 08:14:47
4+
* @ Message: You look very hardworking 👨‍💻. Keep focusing on your goals. 🌤️
5+
*/
6+
17
import 'package:flutter/material.dart';
28
import 'package:foods_selection_screen/data/food_data.dart';
39
import 'package:foods_selection_screen/presentation/detail/widgets/cart_bar.dart';
@@ -12,8 +18,7 @@ class DetailScreen extends StatefulWidget {
1218
State<DetailScreen> createState() => _DetailScreenState();
1319
}
1420

15-
class _DetailScreenState extends State<DetailScreen>
16-
with SingleTickerProviderStateMixin {
21+
class _DetailScreenState extends State<DetailScreen> with SingleTickerProviderStateMixin {
1722
bool showCart = false;
1823
late final AnimationController _rotationController;
1924

‎foods_selection_screen/lib/presentation/detail/widgets/cart_bar.dart‎

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <flutterjourney.org@gmail.com>
3+
* @ Created: 2024年12月06日 08:14:47
4+
* @ Message: You look very hardworking 👨‍💻. Keep focusing on your goals. 🌤️
5+
*/
6+
17
import 'package:flutter/material.dart';
28
import 'package:foods_selection_screen/data/food_data.dart';
39

@@ -48,27 +54,20 @@ class CartBar extends StatelessWidget {
4854
),
4955
),
5056
const SizedBox(height: 20),
51-
const Text("Đơn mua",
52-
textAlign: TextAlign.center,
53-
style: TextStyle(fontSize: 18)),
57+
const Text("Đơn mua", textAlign: TextAlign.center, style: TextStyle(fontSize: 18)),
5458
const SizedBox(height: 20),
5559
Expanded(
5660
child: ListView.builder(
5761
itemCount: items.length,
58-
itemBuilder: (context, index) =>
59-
Image.asset(items[index].image, height: 50),
62+
itemBuilder: (context, index) => Image.asset(items[index].image, height: 50),
6063
),
6164
),
6265
const SizedBox(height: 20),
63-
const Text("Tổng:",
64-
style:
65-
TextStyle(fontSize: 18, fontWeight: FontWeight.bold)),
66-
Text("${items.length} món",
67-
style: const TextStyle(fontSize: 14)),
66+
const Text("Tổng:", style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold)),
67+
Text("${items.length} món", style: const TextStyle(fontSize: 14)),
6868
const SizedBox(height: 5),
6969
const Text("250.000 đ",
70-
style:
71-
TextStyle(fontSize: 16, fontWeight: FontWeight.w800)),
70+
style: TextStyle(fontSize: 16, fontWeight: FontWeight.w800)),
7271
const SizedBox(height: 20),
7372
],
7473
),

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /