Skip to content

Commit a5b3b05

Browse files
committed
Some corrections and showAboutDialog() on menu iconButton click
1 parent 6d66500 commit a5b3b05

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

lib/pages/plants_list/plant_preview.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class PlantPreview extends StatelessWidget
6363
color: Colors.black,
6464
child: new Container
6565
(
66-
margin: new EdgeInsets.all(12.0),
66+
margin: new EdgeInsets.symmetric(horizontal: 20.0, vertical: 12.0),
6767
child: new Text(plant.plantName, style: new TextStyle(color: Colors.white, fontSize: 24.0, fontWeight: FontWeight.w700)),
6868
),
6969
)

lib/pages/plants_list/plants_list_page.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class _PlantsListPageState extends State<PlantsListPage> with SingleTickerProvid
7575
elevation: 1.0,
7676
leading: new IconButton
7777
(
78-
onPressed: () {},
78+
onPressed: () => showAboutDialog(context: context, applicationIcon: new Container(width: 60.0, child: new Image.asset('res/app_icon.png')), applicationLegalese: 'A plant shop e-commerce app concept.\n\nMade by Ivascu Adrian (Skuu labs).'),
7979
icon: new Icon(Icons.menu, color: Colors.black),
8080
),
8181
title: new Row

pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ flutter:
3131
- res/plant1.png
3232
- res/plant2.png
3333
- res/plant3.png
34+
- res/app_icon.png
3435

3536
# An image asset can refer to one or more resolution-specific "variants", see
3637
# https://flutter.io/assets-and-images/#resolution-aware.

res/app_icon.png

25.5 KB
Loading

0 commit comments

Comments
 (0)