File tree Expand file tree Collapse file tree 2 files changed +96
-0
lines changed Expand file tree Collapse file tree 2 files changed +96
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import 'package:gsy_github_app_flutter/common/net/Code.dart';
20
20
21
21
void main () {
22
22
runApp (new FlutterReduxApp ());
23
+ PaintingBinding .instance.imageCache.maximumSize = 100 ;
23
24
}
24
25
25
26
class FlutterReduxApp extends StatelessWidget {
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Created by guoshuyu
3
+ * Date: 2018-10-12
4
+ */
5
+
6
+ abstract class Base {
7
+ a () {
8
+
9
+ }
10
+ b () {
11
+
12
+ }
13
+ }
14
+
15
+ class S extends Base {
16
+ a () {
17
+ print ("S.a" );
18
+ super .a ();
19
+ }
20
+ }
21
+
22
+ class A extends Base {
23
+ a () {
24
+ print ("A.a" );
25
+ super .a ();
26
+ }
27
+
28
+ b () {
29
+ print ("A.b" );
30
+ super .b ();
31
+ }
32
+ }
33
+
34
+ class A1 extends Base {
35
+ a () {
36
+ print ("A1.a" );
37
+ super .a ();
38
+ }
39
+
40
+ b () {
41
+ print ("A1.b" );
42
+ super .b ();
43
+ }
44
+ }
45
+
46
+ class A2 extends Base {
47
+ a () {
48
+ print ("A2.a" );
49
+ super .a ();
50
+ }
51
+
52
+ b () {
53
+ print ("A2.b" );
54
+ super .b ();
55
+ }
56
+ }
57
+
58
+ class B extends Base {
59
+ a () {
60
+ print ("B.a" );
61
+ super .a ();
62
+ }
63
+
64
+ b () {
65
+ print ("B.b" );
66
+ super .b ();
67
+ }
68
+
69
+ c () {
70
+ print ("B.c " );
71
+ }
72
+ }
73
+
74
+ class T = B with A1 , A2 , A , S ;
75
+
76
+
77
+ testMixins () {
78
+ T t = new T ();
79
+ t.a ();
80
+ t.b ();
81
+ t.c ();
82
+ }
83
+
84
+ /**
85
+ * I/flutter ( 1864): S.a
86
+ I/flutter ( 1864): A.a
87
+ I/flutter ( 1864): A2.a
88
+ I/flutter ( 1864): A1.a
89
+ I/flutter ( 1864): B.a
90
+ I/flutter ( 1864): A.b
91
+ I/flutter ( 1864): A2.b
92
+ I/flutter ( 1864): A1.b
93
+ I/flutter ( 1864): B.b
94
+ I/flutter ( 1864): B.c
95
+ * */
You can’t perform that action at this time.
0 commit comments