Skip to content

Commit

Permalink
Add animation
Browse files Browse the repository at this point in the history
  • Loading branch information
iotjin committed Mar 26, 2023
1 parent fac4051 commit f801de4
Show file tree
Hide file tree
Showing 17 changed files with 987 additions and 83 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pwd:123456
* 骨架屏
* 水平滑动菜单(效果同拼多多首页、淘宝我的频道)
* 轮播图(全屏、缩放)
* 抖动、缩放、位移动画
* 工具类
* AES加解密、MD5加密、base64编码解码
* 本地数据AES加密存储
Expand Down
29 changes: 17 additions & 12 deletions lib/demos/demos_router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,6 @@ import 'components/component_demo_list_page.dart';
import 'components/slide_menu_test_page.dart';

// other
import 'other/animation/animation_demo_list_page.dart';
import 'other/animation/ball_3d_page.dart';
import 'other/animation/ball_3d_page2.dart';
import 'other/animation/ball_3d_page3.dart';
import 'other/animation/ball_3d_page4.dart';
import 'other/animation/tag_cloud_page.dart';
import 'other/form_test.dart';
import 'other/photo_select_test.dart';
import 'other/red_dot_page.dart';
Expand All @@ -115,6 +109,15 @@ import 'other/sideslip_test_page.dart';
import 'other/city_select_list_page.dart';
import 'other/device_info_test.dart';

// 动画
import 'other/animation/animation_demo_list_page.dart';
import 'other/animation/animation_test_page.dart';
import 'other/animation/ball_3d_page.dart';
import 'other/animation/ball_3d_page2.dart';
import 'other/animation/ball_3d_page3.dart';
import 'other/animation/ball_3d_page4.dart';
import 'other/animation/tag_cloud_page.dart';

// search
import 'search/search_demo_list_page.dart';
import 'search/search_test1_page.dart';
Expand Down Expand Up @@ -253,20 +256,22 @@ class DemosRouter implements IRouterProvider {
router.define('SlideMenuTestPage', handler: Handler(handlerFunc: (_, __) => const SlideMenuTestPage()));

// other
router.define('AnimationDemoListPage', handler: Handler(handlerFunc: (_, __) => const AnimationDemoListPage()));
router.define('AESTestPage', handler: Handler(handlerFunc: (_, __) => const AESTestPage()));
router.define('Ball3DPage', handler: Handler(handlerFunc: (_, __) => const Ball3DPage()));
router.define('Ball3DPage2', handler: Handler(handlerFunc: (_, __) => const Ball3DPage2()));
router.define('Ball3DPage3', handler: Handler(handlerFunc: (_, __) => const Ball3DPage3()));
router.define('Ball3DPage4', handler: Handler(handlerFunc: (_, __) => const Ball3DPage4()));
router.define('TagCloudPage', handler: Handler(handlerFunc: (_, __) => const TagCloudPage()));
router.define('FormTest', handler: Handler(handlerFunc: (_, __) => const FormTest()));
router.define('PhotoSelectTest', handler: Handler(handlerFunc: (_, __) => const PhotoSelectTest()));
router.define('RedDotPage', handler: Handler(handlerFunc: (_, __) => const RedDotPage()));
router.define('QRCodeTest', handler: Handler(handlerFunc: (_, __) => const QRCodeTest()));
router.define('SideslipTestPage', handler: Handler(handlerFunc: (_, __) => const SideslipTestPage()));
router.define('CitySelectListPage', handler: Handler(handlerFunc: (_, __) => const CitySelectListPage()));
router.define('DeviceInfoTest', handler: Handler(handlerFunc: (_, __) => const DeviceInfoTest()));
// 动画
router.define('AnimationDemoListPage', handler: Handler(handlerFunc: (_, __) => const AnimationDemoListPage()));
router.define('AnimationTestPage', handler: Handler(handlerFunc: (_, __) => const AnimationTestPage()));
router.define('Ball3DPage', handler: Handler(handlerFunc: (_, __) => const Ball3DPage()));
router.define('Ball3DPage2', handler: Handler(handlerFunc: (_, __) => const Ball3DPage2()));
router.define('Ball3DPage3', handler: Handler(handlerFunc: (_, __) => const Ball3DPage3()));
router.define('Ball3DPage4', handler: Handler(handlerFunc: (_, __) => const Ball3DPage4()));
router.define('TagCloudPage', handler: Handler(handlerFunc: (_, __) => const TagCloudPage()));

// search
router.define('SearchDemoListPage', handler: Handler(handlerFunc: (_, __) => const SearchDemoListPage()));
Expand Down
10 changes: 2 additions & 8 deletions lib/demos/other/animation/animation_demo_list_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@ import 'package:flutter/material.dart';
import '/jh_common/widgets/jh_text_list.dart';
import '/project/routes/jh_nav_utils.dart';

final List titleData = ['3D球', '3D球2', '3D球 - 文字', '3D球 - 封装', '3D球 - 圆形阴影'];
final List routeData = [
'Ball3DPage',
'Ball3DPage2',
'Ball3DPage3',
'TagCloudPage',
'Ball3DPage4',
];
final List titleData = ['抖动动画', '3D球', '3D球2', '3D球 - 文字', '3D球 - 封装', '3D球 - 圆形阴影'];
final List routeData = ['AnimationTestPage', 'Ball3DPage', 'Ball3DPage2', 'Ball3DPage3', 'TagCloudPage', 'Ball3DPage4'];

class AnimationDemoListPage extends StatelessWidget {
const AnimationDemoListPage({super.key});
Expand Down
Loading

0 comments on commit f801de4

Please sign in to comment.