File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ class App extends StatelessWidget {
6
6
@override
7
7
Widget build (BuildContext context) {
8
8
return MaterialApp (
9
+ debugShowCheckedModeBanner: false ,
9
10
theme: ThemeData (
10
11
primaryColor: ColorApp .primaryColor,
11
12
accentColor: ColorApp .accentColor,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class DetailScreen extends StatelessWidget {
25
25
Stack (
26
26
children: < Widget > [
27
27
BackdropImage (bannerMovie.backdropPath),
28
- _buildWidgetAppBar (mediaQuery),
28
+ _buildWidgetAppBar (mediaQuery, context ),
29
29
_buildWidgetFloatingActionButton (mediaQuery),
30
30
_buildWidgetIconBuyAndShare (mediaQuery),
31
31
],
@@ -53,19 +53,24 @@ class DetailScreen extends StatelessWidget {
53
53
);
54
54
}
55
55
56
- Widget _buildWidgetAppBar (MediaQueryData mediaQuery) {
56
+ Widget _buildWidgetAppBar (MediaQueryData mediaQuery, BuildContext context ) {
57
57
return Padding (
58
58
padding: EdgeInsets .only (
59
59
left: 16.0 ,
60
- top: mediaQuery.padding.top == 0 ? 16.0 : mediaQuery.padding.top,
60
+ top: mediaQuery.padding.top == 0 ? 16.0 : mediaQuery.padding.top + 8.0 ,
61
61
right: 16.0 ,
62
62
),
63
63
child: Row (
64
64
crossAxisAlignment: CrossAxisAlignment .center,
65
65
children: < Widget > [
66
- Icon (
67
- Platform .isIOS ? Icons .arrow_back_ios : Icons .arrow_back,
68
- color: Colors .white,
66
+ GestureDetector (
67
+ onTap: () {
68
+ Navigator .pop (context);
69
+ },
70
+ child: Icon (
71
+ Platform .isIOS ? Icons .arrow_back_ios : Icons .arrow_back,
72
+ color: Colors .white,
73
+ ),
69
74
),
70
75
Expanded (
71
76
child: Image .asset (
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ class HomeScreen extends StatelessWidget {
12
12
body: SafeArea (
13
13
child: Padding (
14
14
padding: EdgeInsets .only (
15
- top: mediaQuery.padding.top == 0 ? 16.0 : 0 ,
15
+ top: mediaQuery.padding.top == 0 ? 16.0 : 16.0 ,
16
+ bottom: mediaQuery.padding.bottom == 0 ? 16.0 : 0 ,
16
17
),
17
18
child: Column (
18
19
children: < Widget > [
You can’t perform that action at this time.
0 commit comments