Skip to content

Commit e22fc8a

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 24c7ad9 + 4a2ce6a commit e22fc8a

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed

lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import 'package:gsy_github_app_flutter/common/net/Code.dart';
2020

2121
void main() {
2222
runApp(new FlutterReduxApp());
23+
PaintingBinding.instance.imageCache.maximumSize = 100;
2324
}
2425

2526
class FlutterReduxApp extends StatelessWidget {

lib/test/DemoMixins.dart

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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+
* */

0 commit comments

Comments
 (0)