File tree Expand file tree Collapse file tree 4 files changed +17
-7
lines changed Expand file tree Collapse file tree 4 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ class ScreenState extends State<Screen> with AnimationControllerMixin {
37
37
38
38
Animation <double > popUpAnimation;
39
39
bool inProgress = false ;
40
+ bool mounted = false ;
40
41
String popUpTitle;
41
42
String popUpMessage;
42
43
@@ -60,6 +61,7 @@ class ScreenState extends State<Screen> with AnimationControllerMixin {
60
61
return ;
61
62
}
62
63
setState (() {
64
+ mounted = true ;
63
65
popUpMessage = message;
64
66
popUpTitle = title;
65
67
});
@@ -76,6 +78,9 @@ class ScreenState extends State<Screen> with AnimationControllerMixin {
76
78
to: 0.0 ,
77
79
onComplete: () {
78
80
inProgress = false ;
81
+ setState (() {
82
+ mounted = false ;
83
+ });
79
84
}),
80
85
]);
81
86
}
@@ -84,6 +89,10 @@ class ScreenState extends State<Screen> with AnimationControllerMixin {
84
89
final margin = AppDimensions .padding * 3 ;
85
90
final borderRadius = BorderRadius .circular (6.0 );
86
91
92
+ if (! mounted) {
93
+ return Container ();
94
+ }
95
+
87
96
return Positioned (
88
97
bottom: Utils .rangeMap (
89
98
popUpAnimation.value,
@@ -102,6 +111,7 @@ class ScreenState extends State<Screen> with AnimationControllerMixin {
102
111
duration: Duration (milliseconds: popUpTransitionDuration),
103
112
onComplete: () {
104
113
inProgress = false ;
114
+ mounted = false ;
105
115
},
106
116
)
107
117
]),
Original file line number Diff line number Diff line change 1
1
import 'dart:convert' ;
2
2
3
3
import 'package:flutter/material.dart' ;
4
+ import 'package:flutter_uis/Utils.dart' ;
4
5
import 'package:flutter_vector_icons/flutter_vector_icons.dart' ;
5
6
import 'package:http/http.dart' as http;
6
7
@@ -87,14 +88,15 @@ class _DownloadScreenState extends State<DownloadScreen> {
87
88
child: Column (
88
89
crossAxisAlignment: CrossAxisAlignment .start,
89
90
children: < Widget > [
91
+ Utils .safePadding (context, "top" ),
90
92
Container (
91
93
width: double .infinity,
92
94
padding: EdgeInsets .all (AppDimensions .padding * 2 ),
93
95
child: Text (
94
96
"Download will start in browser" ,
95
97
textAlign: TextAlign .center,
96
98
style: TextStyle (
97
- fontSize: 14 + AppDimensions .ratio * 5 ,
99
+ fontSize: 12 + AppDimensions .ratio * 4 ,
98
100
),
99
101
),
100
102
),
Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ final mobileLinks = [
8
8
"icon" : MaterialCommunityIcons .google_play,
9
9
},
10
10
{
11
- "key" : "apk -release.apk" ,
11
+ "key" : "app -release.apk" ,
12
12
"name" : "Apk" ,
13
13
"icon" : MaterialCommunityIcons .android,
14
14
}
15
15
];
16
16
17
17
final desktopLinks = [
18
18
{
19
- "key" : "mac -release.zip" ,
19
+ "key" : "macos -release.zip" ,
20
20
"name" : "Mac" ,
21
21
"icon" : MaterialCommunityIcons .apple_finder,
22
22
},
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
2
3
3
import 'package:flutter_vector_icons/flutter_vector_icons.dart' ;
4
- import 'package:url_launcher/url_launcher.dart' as url;
5
4
import 'package:flutter_bloc/flutter_bloc.dart' ;
6
5
7
6
import 'package:flutter_uis/blocs/ui_bloc/bloc.dart' ;
@@ -66,7 +65,6 @@ class _UiDetailScreenState extends State<UiDetailScreen>
66
65
image: ExactAssetImage (uiItem.thumbnail),
67
66
fit: BoxFit .cover,
68
67
),
69
- // color: Colors.red,
70
68
),
71
69
),
72
70
);
@@ -279,10 +277,10 @@ class _UiDetailScreenState extends State<UiDetailScreen>
279
277
arguments: {"designer" : uiItem.designer, "id" : uiItem.id},
280
278
),
281
279
),
282
- Utils .safePadding (context, 'bottom' ),
283
280
Padding (
284
281
padding: EdgeInsets .only (top: safeOffset < 0 ? 0 : safeOffset),
285
- )
282
+ ),
283
+ Utils .safePadding (context, 'bottom' ),
286
284
],
287
285
),
288
286
),
You can’t perform that action at this time.
0 commit comments