Skip to content

Commit f801de4

Browse files
committed
Add animation
1 parent fac4051 commit f801de4

17 files changed

+987
-83
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pwd:123456
4343
* 骨架屏
4444
* 水平滑动菜单(效果同拼多多首页、淘宝我的频道)
4545
* 轮播图(全屏、缩放)
46+
* 抖动、缩放、位移动画
4647
* 工具类
4748
* AES加解密、MD5加密、base64编码解码
4849
* 本地数据AES加密存储

lib/demos/demos_router.dart

+17-12
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,6 @@ import 'components/component_demo_list_page.dart';
100100
import 'components/slide_menu_test_page.dart';
101101

102102
// other
103-
import 'other/animation/animation_demo_list_page.dart';
104-
import 'other/animation/ball_3d_page.dart';
105-
import 'other/animation/ball_3d_page2.dart';
106-
import 'other/animation/ball_3d_page3.dart';
107-
import 'other/animation/ball_3d_page4.dart';
108-
import 'other/animation/tag_cloud_page.dart';
109103
import 'other/form_test.dart';
110104
import 'other/photo_select_test.dart';
111105
import 'other/red_dot_page.dart';
@@ -115,6 +109,15 @@ import 'other/sideslip_test_page.dart';
115109
import 'other/city_select_list_page.dart';
116110
import 'other/device_info_test.dart';
117111

112+
// 动画
113+
import 'other/animation/animation_demo_list_page.dart';
114+
import 'other/animation/animation_test_page.dart';
115+
import 'other/animation/ball_3d_page.dart';
116+
import 'other/animation/ball_3d_page2.dart';
117+
import 'other/animation/ball_3d_page3.dart';
118+
import 'other/animation/ball_3d_page4.dart';
119+
import 'other/animation/tag_cloud_page.dart';
120+
118121
// search
119122
import 'search/search_demo_list_page.dart';
120123
import 'search/search_test1_page.dart';
@@ -253,20 +256,22 @@ class DemosRouter implements IRouterProvider {
253256
router.define('SlideMenuTestPage', handler: Handler(handlerFunc: (_, __) => const SlideMenuTestPage()));
254257

255258
// other
256-
router.define('AnimationDemoListPage', handler: Handler(handlerFunc: (_, __) => const AnimationDemoListPage()));
257259
router.define('AESTestPage', handler: Handler(handlerFunc: (_, __) => const AESTestPage()));
258-
router.define('Ball3DPage', handler: Handler(handlerFunc: (_, __) => const Ball3DPage()));
259-
router.define('Ball3DPage2', handler: Handler(handlerFunc: (_, __) => const Ball3DPage2()));
260-
router.define('Ball3DPage3', handler: Handler(handlerFunc: (_, __) => const Ball3DPage3()));
261-
router.define('Ball3DPage4', handler: Handler(handlerFunc: (_, __) => const Ball3DPage4()));
262-
router.define('TagCloudPage', handler: Handler(handlerFunc: (_, __) => const TagCloudPage()));
263260
router.define('FormTest', handler: Handler(handlerFunc: (_, __) => const FormTest()));
264261
router.define('PhotoSelectTest', handler: Handler(handlerFunc: (_, __) => const PhotoSelectTest()));
265262
router.define('RedDotPage', handler: Handler(handlerFunc: (_, __) => const RedDotPage()));
266263
router.define('QRCodeTest', handler: Handler(handlerFunc: (_, __) => const QRCodeTest()));
267264
router.define('SideslipTestPage', handler: Handler(handlerFunc: (_, __) => const SideslipTestPage()));
268265
router.define('CitySelectListPage', handler: Handler(handlerFunc: (_, __) => const CitySelectListPage()));
269266
router.define('DeviceInfoTest', handler: Handler(handlerFunc: (_, __) => const DeviceInfoTest()));
267+
// 动画
268+
router.define('AnimationDemoListPage', handler: Handler(handlerFunc: (_, __) => const AnimationDemoListPage()));
269+
router.define('AnimationTestPage', handler: Handler(handlerFunc: (_, __) => const AnimationTestPage()));
270+
router.define('Ball3DPage', handler: Handler(handlerFunc: (_, __) => const Ball3DPage()));
271+
router.define('Ball3DPage2', handler: Handler(handlerFunc: (_, __) => const Ball3DPage2()));
272+
router.define('Ball3DPage3', handler: Handler(handlerFunc: (_, __) => const Ball3DPage3()));
273+
router.define('Ball3DPage4', handler: Handler(handlerFunc: (_, __) => const Ball3DPage4()));
274+
router.define('TagCloudPage', handler: Handler(handlerFunc: (_, __) => const TagCloudPage()));
270275

271276
// search
272277
router.define('SearchDemoListPage', handler: Handler(handlerFunc: (_, __) => const SearchDemoListPage()));

lib/demos/other/animation/animation_demo_list_page.dart

+2-8
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@ import 'package:flutter/material.dart';
22
import '/jh_common/widgets/jh_text_list.dart';
33
import '/project/routes/jh_nav_utils.dart';
44

5-
final List titleData = ['3D球', '3D球2', '3D球 - 文字', '3D球 - 封装', '3D球 - 圆形阴影'];
6-
final List routeData = [
7-
'Ball3DPage',
8-
'Ball3DPage2',
9-
'Ball3DPage3',
10-
'TagCloudPage',
11-
'Ball3DPage4',
12-
];
5+
final List titleData = ['抖动动画', '3D球', '3D球2', '3D球 - 文字', '3D球 - 封装', '3D球 - 圆形阴影'];
6+
final List routeData = ['AnimationTestPage', 'Ball3DPage', 'Ball3DPage2', 'Ball3DPage3', 'TagCloudPage', 'Ball3DPage4'];
137

148
class AnimationDemoListPage extends StatelessWidget {
159
const AnimationDemoListPage({super.key});

0 commit comments

Comments
 (0)