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

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 🎯 <[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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
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 {
Lines changed: 16 additions & 26 deletions
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 7 additions & 2 deletions
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

Lines changed: 11 additions & 12 deletions
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

Lines changed: 8 additions & 4 deletions
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

Lines changed: 8 additions & 4 deletions
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 13 additions & 14 deletions
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

Lines changed: 9 additions & 6 deletions
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)