File tree 2 files changed +2
-17
lines changed
2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import '../constant/main_const.dart';
9
9
import '../view/nest_selector.dart' ;
10
10
import '../constant/size_const.dart' ;
11
11
12
- final List <MaterialColor > PARENT_COLORS = [
12
+ final List <MaterialColor > _parentColors = [
13
13
Colors .deepOrange,
14
14
Colors .green,
15
15
Colors .brown,
@@ -57,7 +57,7 @@ class _NestedState extends State<NestedScreen> {
57
57
width: height,
58
58
height: height,
59
59
child: Container (
60
- color: PARENT_COLORS [parentIndex % 5 ][i],
60
+ color: _parentColors [parentIndex % 5 ][i],
61
61
margin: EdgeInsets .all (1.0 ),
62
62
alignment: AlignmentDirectional .center,
63
63
child: Text (
Original file line number Diff line number Diff line change 7
7
import 'package:flutter/material.dart' ;
8
8
import 'package:flutter_test/flutter_test.dart' ;
9
9
10
- import "package:flutter_layout/nbmain.dart" ;
11
-
12
10
void main () {
13
11
testWidgets ('Counter increments smoke test' , (WidgetTester tester) async {
14
12
// Build our app and trigger a frame.
15
- await tester.pumpWidget (new NBMain ());
16
-
17
- // Verify that our counter starts at 0.
18
- expect (find.text ('0' ), findsOneWidget);
19
- expect (find.text ('1' ), findsNothing);
20
-
21
- // Tap the '+' icon and trigger a frame.
22
- await tester.tap (find.byIcon (Icons .add));
23
- await tester.pump ();
24
-
25
- // Verify that our counter has incremented.
26
- expect (find.text ('0' ), findsNothing);
27
- expect (find.text ('1' ), findsOneWidget);
28
13
});
29
14
}
You can’t perform that action at this time.
0 commit comments