Skip to content

Commit dbd1014

Browse files
committed
update demo
1 parent 3870130 commit dbd1014

File tree

5 files changed

+33
-225
lines changed

5 files changed

+33
-225
lines changed

assets/3x/communication.webp

7.34 KB
Binary file not shown.

assets/3x/official_account.webp

6.05 KB
Binary file not shown.

example/chen_sort.dart

-220
This file was deleted.

example/home.dart

+31-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import 'arbitrary_position.dart';
55
import 'badge.dart';
66
import 'barrier.dart';
77
import 'charts.dart';
8-
import 'chen_sort.dart';
98
import 'circle_position.dart';
109
import 'coming_soon.dart';
1110
import 'complex_list.dart';
@@ -30,8 +29,6 @@ class ExampleHome extends StatelessWidget {
3029
ExampleHome({Key? key}) : super(key: key);
3130

3231
final Map<String, Widget?> exampleMap = {
33-
'Chen sort(The fastest sorting algorithm in the world, 60% faster than Quicksort)':
34-
const ChenSortExample(),
3532
'Summary': const SummaryExample(),
3633
'Open Grammar': const OpenGrammarExample(),
3734
'Guideline': const GuidelineExample(),
@@ -109,7 +106,37 @@ class ExampleHome extends StatelessWidget {
109106
margin: const EdgeInsets.only(
110107
bottom: 20,
111108
),
112-
)
109+
),
110+
Image.asset(
111+
'assets/official_account.webp',
112+
).applyConstraint(
113+
centerLeftTo: parent.leftMargin(200),
114+
),
115+
const Text(
116+
'扫码关注微信公众号 FlutterFirst,带你起飞',
117+
style: TextStyle(
118+
fontSize: 16,
119+
fontWeight: FontWeight.bold,
120+
height: 1.5,
121+
),
122+
).applyConstraint(
123+
outBottomCenterTo: sId(-1).topMargin(16),
124+
),
125+
Image.asset(
126+
'assets/communication.webp',
127+
).applyConstraint(
128+
centerRightTo: parent.rightMargin(200),
129+
),
130+
const Text(
131+
'扫码添加我的个人微信,拉你进 Flutter 交流群,请备注【加群】',
132+
style: TextStyle(
133+
fontSize: 16,
134+
fontWeight: FontWeight.bold,
135+
height: 1.5,
136+
),
137+
).applyConstraint(
138+
outBottomCenterTo: sId(-1).topMargin(16),
139+
),
113140
],
114141
),
115142
);

pubspec.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ flutter:
4444
- example/constraint_controller.dart
4545
- example/translate.dart
4646
- example/open_grammar.dart
47-
- example/chen_sort.dart
47+
- assets/official_account.webp
48+
- assets/communication.webp

0 commit comments

Comments
 (0)