File tree 7 files changed +70
-46
lines changed
7 files changed +70
-46
lines changed Original file line number Diff line number Diff line change
1
+ on : [push, pull_request]
2
+ name : build
3
+ jobs :
4
+ build :
5
+ name : Run build
6
+ runs-on : macos-latest
7
+ steps :
8
+ - uses : actions/checkout@v2
9
+ - name : Flutter action
10
+ uses : subosito/flutter-action@v1
11
+ with :
12
+ channel : ' stable'
13
+ - name : Install dependencies
14
+ run : flutter pub get
15
+ - name : Build apk
16
+ run : |
17
+ cd example
18
+ flutter build apk
Original file line number Diff line number Diff line change
1
+ on : [push, pull_request]
2
+ name : tests
3
+ jobs :
4
+ build :
5
+ name : Run tests
6
+ runs-on : macos-latest
7
+ steps :
8
+ - uses : actions/checkout@v2
9
+ - name : Flutter action
10
+ uses : subosito/flutter-action@v1
11
+ with :
12
+ channel : ' stable'
13
+ - name : Install dependencies
14
+ run : flutter pub get
15
+ - name : Run tests
16
+ id : test
17
+ run : |
18
+ cd example
19
+ flutter test ..
20
+ cd ..
21
+ - name : Check format
22
+ run : flutter format --dry-run --set-exit-if-changed .
23
+ - name : Analyzer
24
+ run : flutter analyze --no-pub lib example
25
+ - name : Generate coverage
26
+ continue-on-error : true
27
+ run : flutter test --no-pub --coverage
28
+ - name : Upload coverage to Codecov
29
+ if : github.ref == 'refs/heads/master' && steps.test.outcome == 'success'
30
+ uses : codecov/codecov-action@v1
31
+ with :
32
+ file : coverage/lcov.info
Original file line number Diff line number Diff line change @@ -26,3 +26,4 @@ doc/api/
26
26
* .js.deps
27
27
* .js.map
28
28
.vscode /
29
+ /coverage /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
<div align =" center " ><img src =" https://github.com/aagarwal1012/IntroViews-Flutter/blob/master/display/header.png?raw=true " /></div >
2
2
<br />
3
3
<div align =" center " >
4
- <a href="https://flutter.io">
4
+ <a href =" https://flutter.io " >
5
5
<img src="https://img.shields.io/badge/Platform-Flutter-yellow.svg"
6
6
alt="Platform" />
7
7
</a >
8
- <a href =" https://pub.dartlang.org/packages/intro_views_flutter " >
8
+ <a href =" https://pub.dartlang.org/packages/intro_views_flutter " >
9
9
<img src="https://img.shields.io/pub/v/intro_views_flutter.svg"
10
10
alt="Pub Package" />
11
11
</a >
12
- <a href =" https://travis-ci.com/aagarwal1012/IntroViews-Flutter " >
13
- <img src="https://travis-ci.com/aagarwal1012/IntroViews-Flutter.svg?branch=master "
12
+ <img src="https://github.com/aagarwal1012/IntroViews-Flutter/actions/workflows/build.yml/badge.svg "
14
13
alt="Build Status" />
15
- </a >
14
+ <img src="https://github.com/aagarwal1012/IntroViews-Flutter/actions/workflows/tests.yml/badge.svg "
15
+ alt="Tests Status" />
16
16
<a href =" https://codecov.io/gh/aagarwal1012/IntroViews-Flutter " >
17
17
<img src="https://codecov.io/gh/aagarwal1012/IntroViews-Flutter/branch/master/graph/badge.svg "
18
18
alt="Codecov Coverage" />
Original file line number Diff line number Diff line change @@ -34,16 +34,16 @@ class DefaultButton extends StatelessWidget {
34
34
opacity = pageButtonViewModel.slidePercent;
35
35
}
36
36
37
- return FlatButton (
37
+ return TextButton (
38
38
onPressed: onTap,
39
39
child: Opacity (
40
40
opacity: opacity,
41
41
child: DefaultTextStyle .merge (
42
42
style: style,
43
43
child: child,
44
- ), //Text
45
- ), //Opacity
46
- ); //FlatButton
44
+ ),
45
+ ),
46
+ );
47
47
}
48
48
}
49
49
@@ -75,16 +75,16 @@ class DoneButton extends StatelessWidget {
75
75
opacity = 1.0 - pageButtonViewModel.slidePercent;
76
76
}
77
77
78
- return FlatButton (
78
+ return TextButton (
79
79
onPressed: onTap,
80
80
child: Opacity (
81
81
opacity: opacity,
82
82
child: DefaultTextStyle .merge (
83
83
style: style,
84
- child: child, //Text
84
+ child: child,
85
85
),
86
- ), //Opacity
87
- ); //FlatButton
86
+ ),
87
+ );
88
88
}
89
89
}
90
90
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ const double PORTRAIT_WIDTH = 1800.0;
13
13
const double PORTRAIT_HEIGHT = 2400.0 ;
14
14
15
15
void main () {
16
+ testWidgets ('Dummy test' , (WidgetTester tester) async {
17
+ await tester.pumpWidget (App ());
18
+ await tester.pumpAndSettle ();
19
+ expect (find.byType (MaterialApp ), findsOneWidget);
20
+ });
21
+
16
22
testWidgets ('Skip Pressed smoke test' , (WidgetTester tester) async {
17
23
// Build our app and trigger a frame.
18
24
await tester.pumpWidget (new App ());
You can’t perform that action at this time.
0 commit comments