File tree Expand file tree Collapse file tree 5 files changed +11
-21
lines changed Expand file tree Collapse file tree 5 files changed +11
-21
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Flutter
3
3
4
4
on :
5
5
# Runs this action when you push on master
6
+ workflow_dispatch :
6
7
push :
7
8
branches : [ "main" ]
8
9
tags :
Original file line number Diff line number Diff line change @@ -61,18 +61,9 @@ android {
61
61
versionName flutterVersionName
62
62
}
63
63
64
- signingConfigs {
65
- release {
66
- storeFile file(keystoreProperties[" storeFile" ])
67
- storePassword keystoreProperties[" storePassword" ]
68
- keyAlias keystoreProperties[" keyAlias" ]
69
- keyPassword keystoreProperties[" keyPassword" ]
70
- }
71
- }
72
-
73
64
buildTypes {
74
65
release {
75
- signingConfig signingConfigs. release
66
+ signingConfig signingConfigs. debug
76
67
minifyEnabled true
77
68
shrinkResources true
78
69
proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
Original file line number Diff line number Diff line change @@ -73,19 +73,12 @@ class StatusController extends GetxController {
73
73
},
74
74
);
75
75
76
- if (response.statusCode = = 200 ) {
76
+ if (response.statusCode ! = 200 ) {
77
77
await getStatus (date: date);
78
- // Get.snackbar(
79
- // 'Status Updated',a
80
- // 'Status updated successfully!',
81
- // snackPosition: SnackPosition.BOTTOM,
82
- // );
83
- } else {
84
- throw Exception ('Failed to update status' );
78
+ throw Exception ();
85
79
}
86
80
} catch (e) {
87
- print ('Error: $e ' );
88
- throw Exception ('Failed to update status' );
81
+ throw Exception ('Failed to update status: $e ' );
89
82
}
90
83
}
91
84
Original file line number Diff line number Diff line change @@ -28,8 +28,13 @@ class StatusViewState extends State<StatusView> {
28
28
DateTime now = DateTime .now ();
29
29
30
30
@override
31
- Widget build (BuildContext context) {
31
+ void initState () {
32
+ super .initState ();
32
33
controller.getStatus ();
34
+ }
35
+
36
+ @override
37
+ Widget build (BuildContext context) {
33
38
34
39
return Scaffold (
35
40
backgroundColor: bgColor,
File renamed without changes.
You can’t perform that action at this time.
0 commit comments