File tree 3 files changed +54
-3
lines changed
3 files changed +54
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Flutter Analyze
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+ push :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build :
13
+ name : Analyze code and requirements
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - name : Checkout code
18
+ uses : actions/checkout@v4
19
+
20
+ - name : Setup Flutter
21
+ uses : subosito/flutter-action@v2
22
+ with :
23
+ channel : ' stable'
24
+
25
+ - name : Verify Flutter installation
26
+ run : flutter doctor
27
+
28
+ - name : Check pub dependencies
29
+ run : flutter pub get
30
+
31
+ - name : " Run Dart Analyze"
32
+ uses : invertase/github-action-dart-analyzer@v3
33
+ with :
34
+ fatal-infos : true
35
+ fatal-warnings : true
36
+ annotate : true
37
+ working-directory : lib/
38
+
39
+ - name : Check Code formatting
40
+ run : dart format -o none --set-exit-if-changed .
41
+
42
+ - name : Check pub.dev requirements
43
+ run : flutter pub publish --dry-run
44
+
45
+ - name : Block merge if checks fail
46
+ if : ${{ failure() }}
47
+ run : echo "Checks failed, cannot merge." && exit 1
Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ class _ControlsState extends State<Controls> {
57
57
}
58
58
}
59
59
widget.onCaptureToggle? .call (choosenCaptureDeviceId);
60
- setState (() {}); /// just change button color
60
+ setState (() {});
61
+
62
+ /// just change button color
61
63
},
62
64
style: buttonStyle (SoLoudCapture .instance.isCaptureStarted ()),
63
65
child: const Text ('capture' ),
@@ -83,7 +85,9 @@ class _ControlsState extends State<Controls> {
83
85
onItemTapped: (index, controller) {
84
86
controller.closeMenu !();
85
87
widget.onDeviceIdChanged? .call (choosenCaptureDeviceId);
86
- setState (() {}); /// just to rebuild [lazyItems]
88
+ setState (() {});
89
+
90
+ /// just to rebuild [lazyItems]
87
91
},
88
92
lazyItems: captureDeviceList,
89
93
child: const Chip (
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ class _VisualizerState extends State<Visualizer>
124
124
125
125
widget.controller.isCaptureStarted =
126
126
SoLoudCapture .instance.isCaptureStarted ();
127
-
127
+
128
128
widget.controller.addListener (() {
129
129
ticker.stop ();
130
130
setupBitmapSize ();
You can’t perform that action at this time.
0 commit comments