File tree 2 files changed +18
-12
lines changed
2 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,14 @@ class _HomeScreenState extends State<HomeScreen> {
126
126
horizontal: 8.0 , vertical: 12.0 ),
127
127
child: Column (
128
128
children: < Widget > [
129
- Text (
130
- category.strCategory,
131
- textAlign: TextAlign .center,
132
- style: TextStyle (
133
- color: Colors .white,
129
+ Hero (
130
+ tag: "label_item_category_${category .idCategory }" ,
131
+ child: Text (
132
+ category.strCategory,
133
+ textAlign: TextAlign .center,
134
+ style: TextStyle (
135
+ color: Colors .white,
136
+ ),
134
137
),
135
138
),
136
139
Padding (padding: const EdgeInsets .only (top: 8.0 )),
Original file line number Diff line number Diff line change @@ -44,13 +44,16 @@ class _ListMealsState extends State<ListMeals> {
44
44
crossAxisAlignment: CrossAxisAlignment .start,
45
45
children: < Widget > [
46
46
Padding (padding: EdgeInsets .only (top: 16.0 )),
47
- Text (
48
- categoryItem.strCategory,
49
- style: Theme .of (context)
50
- .textTheme
51
- .display2
52
- .merge (TextStyle (fontWeight: FontWeight .bold)),
53
- maxLines: 1 ,
47
+ Hero (
48
+ tag: "label_item_category_${categoryItem .idCategory }" ,
49
+ child: Text (
50
+ categoryItem.strCategory,
51
+ style: Theme .of (context)
52
+ .textTheme
53
+ .display2
54
+ .merge (TextStyle (fontWeight: FontWeight .bold)),
55
+ maxLines: 1 ,
56
+ ),
54
57
),
55
58
Padding (padding: EdgeInsets .only (top: 16.0 )),
56
59
Expanded (
You can’t perform that action at this time.
0 commit comments