Skip to content

Commit 79110c4

Browse files
committed
📝 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

+24
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 🎯 <[email protected]>",
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

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
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

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
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

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
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

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
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

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
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 {
+16-26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
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

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
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

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
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

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
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
),

foods_selection_screen/lib/presentation/home/home_screen.dart

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
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 'widgets/menu_item_card.dart';
@@ -14,8 +20,7 @@ class HomeScreen extends StatelessWidget {
1420
leading: const Icon(Icons.sort, color: Colors.black),
1521
actions: [
1622
_buildActionIcon(context, Icons.shopping_cart),
17-
_buildActionIcon(context, Icons.search,
18-
margin: const EdgeInsets.only(right: 20)),
23+
_buildActionIcon(context, Icons.search, margin: const EdgeInsets.only(right: 20)),
1924
],
2025
),
2126
body: Padding(
@@ -60,8 +65,7 @@ class HomeScreen extends StatelessWidget {
6065
);
6166
}
6267

63-
Widget _buildActionIcon(BuildContext context, IconData icon,
64-
{EdgeInsets? margin}) {
68+
Widget _buildActionIcon(BuildContext context, IconData icon, {EdgeInsets? margin}) {
6569
return Container(
6670
height: 40,
6771
width: 40,

foods_selection_screen/lib/presentation/home/widgets/menu_item_card.dart

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
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/detail_screen.dart';
@@ -12,8 +18,7 @@ class MenuItemCard extends StatefulWidget {
1218
State<MenuItemCard> createState() => _MenuItemCardState();
1319
}
1420

15-
class _MenuItemCardState extends State<MenuItemCard>
16-
with SingleTickerProviderStateMixin {
21+
class _MenuItemCardState extends State<MenuItemCard> with SingleTickerProviderStateMixin {
1722
late AnimationController _controller;
1823

1924
@override
@@ -38,8 +43,7 @@ class _MenuItemCardState extends State<MenuItemCard>
3843
Navigator.push(
3944
context,
4045
MaterialPageRoute(
41-
builder: (context) =>
42-
DetailScreen(data: widget.data, tag: "${widget.index}"),
46+
builder: (context) => DetailScreen(data: widget.data, tag: "${widget.index}"),
4347
),
4448
);
4549
},

movie_selection_screen/lib/main.dart

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
3+
* @ Created: 2024-12-04 16:51:05
4+
* @ Message: You look very hardworking 👨‍💻. Keep focusing on your goals. 🌤️
5+
*/
6+
17
import 'package:flutter/material.dart';
28
import 'package:movie_selection_screen/presentation/movie_display/movie_display.dart';
39

movie_selection_screen/lib/model.dart

+13-14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
3+
* @ Created: 2024-12-04 16:51:05
4+
* @ Message: You look very hardworking 👨‍💻. Keep focusing on your goals. 🌤️
5+
*/
6+
17
class Movie {
28
String title;
39
String image;
@@ -29,8 +35,7 @@ class Movie {
2935
final List<Movie> movieItems = [
3036
Movie(
3137
title: 'Công Tử Bạc Liêu',
32-
image:
33-
'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-1.jpg',
38+
image: 'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-1.jpg',
3439
director: 'Direct by Lý Minh Thắng',
3540
rating: '4.7',
3641
duration: '1h:46m',
@@ -44,8 +49,7 @@ final List<Movie> movieItems = [
4449
),
4550
Movie(
4651
title: 'Linh Miêu: Quỷ Nhập Tràng',
47-
image:
48-
'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-2.jpg',
52+
image: 'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-2.jpg',
4953
director: 'Direct by Lưu Thành Luân',
5054
rating: '4.5',
5155
duration: '1h:49m',
@@ -59,8 +63,7 @@ final List<Movie> movieItems = [
5963
),
6064
Movie(
6165
title: 'Ngày Xưa Có Một Chuyện Tình',
62-
image:
63-
'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-3.jpg',
66+
image: 'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-3.jpg',
6467
director: 'Direct by Trịnh Đình Lê Minh',
6568
rating: '4.8',
6669
duration: '2h:03m',
@@ -74,8 +77,7 @@ final List<Movie> movieItems = [
7477
),
7578
Movie(
7679
title: 'Cám',
77-
image:
78-
'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-4.jpg',
80+
image: 'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-4.jpg',
7981
director: 'Direct by Trần Hữu Tấn',
8082
rating: '4.6',
8183
duration: '2h:02m',
@@ -89,8 +91,7 @@ final List<Movie> movieItems = [
8991
),
9092
Movie(
9193
title: 'Cô Dâu Hào Môn',
92-
image:
93-
'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-5.jpg',
94+
image: 'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-5.jpg',
9495
director: 'Direct by Vũ Ngọc Đãng',
9596
rating: '4.7',
9697
duration: '1h:54m',
@@ -104,8 +105,7 @@ final List<Movie> movieItems = [
104105
),
105106
Movie(
106107
title: 'Hai Muối',
107-
image:
108-
'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-6.jpg',
108+
image: 'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-6.jpg',
109109
director: 'Direct by NSƯT Vũ Thành Vinh',
110110
rating: '4.6',
111111
duration: '2h:03m',
@@ -119,8 +119,7 @@ final List<Movie> movieItems = [
119119
),
120120
Movie(
121121
title: 'Lật Mặt 7: Một Điều Ước',
122-
image:
123-
'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-8.jpg',
122+
image: 'https://cdn-media.sforum.vn/storage/app/media/quynh/phim-viet-nam-chieu-rap-8.jpg',
124123
director: 'Direct by Lý Hải',
125124
rating: '4.9',
126125
duration: '2h:40m',

movie_selection_screen/lib/presentation/detail_screen/movie_detail.dart

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* @ Author: Flutter Journey 🎯 <[email protected]>
3+
* @ Created: 2024-12-04 16:51:05
4+
* @ Message: You look very hardworking 👨‍💻. Keep focusing on your goals. 🌤️
5+
*/
6+
17
import 'package:animate_do/animate_do.dart';
28
import 'package:flutter/material.dart';
39
import 'package:movie_selection_screen/model.dart';
@@ -44,8 +50,7 @@ class _MovieDetailState extends State<MovieDetail> {
4450
delegate: SliverChildListDelegate(
4551
[
4652
Padding(
47-
padding:
48-
const EdgeInsets.symmetric(horizontal: 20, vertical: 30),
53+
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 30),
4954
child: Column(
5055
crossAxisAlignment: CrossAxisAlignment.start,
5156
children: [
@@ -123,14 +128,12 @@ class _MovieTitleAndTicketPrice extends StatelessWidget {
123128
children: [
124129
Text(
125130
movie.title,
126-
style: const TextStyle(
127-
fontWeight: FontWeight.bold, fontSize: 25),
131+
style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 25),
128132
),
129133
const SizedBox(height: 5),
130134
Text(
131135
"Director: ${movie.director}",
132-
style: const TextStyle(
133-
fontWeight: FontWeight.w500, color: Colors.black54),
136+
style: const TextStyle(fontWeight: FontWeight.w500, color: Colors.black54),
134137
),
135138
],
136139
),

0 commit comments

Comments
 (0)