flutter_villains-master.zip
大小:327.26KB
价格:42积分
下载量:0
评分:
5.0
上传者:qq_36040764
更新日期:2024-08-12

灵活且易于使用的页面转换

资源文件列表(大概)

文件名
大小
flutter_villains-master/
-
flutter_villains-master/.gitignore
261B
flutter_villains-master/.travis.yml
492B
flutter_villains-master/CHANGELOG.md
72B
flutter_villains-master/LICENSE
1.05KB
flutter_villains-master/README.md
6.15KB
flutter_villains-master/assets/
-
flutter_villains-master/assets/icons8-joker-suicide-squad-96.png
3.7KB
flutter_villains-master/example/
-
flutter_villains-master/example/.gitignore
65B
flutter_villains-master/example/.idea/
-
flutter_villains-master/example/.idea/libraries/
-
flutter_villains-master/example/.idea/libraries/Dart_Packages.xml
19.97KB
flutter_villains-master/example/.idea/libraries/Dart_SDK.xml
1.67KB
flutter_villains-master/example/.idea/libraries/Flutter_Plugins.xml
173B
flutter_villains-master/example/.idea/misc.xml
172B
flutter_villains-master/example/.idea/modules.xml
372B
flutter_villains-master/example/.idea/runConfigurations/
-
flutter_villains-master/example/.idea/runConfigurations/main_dart.xml
271B
flutter_villains-master/example/.idea/workspace.xml
13.69KB
flutter_villains-master/example/.metadata
284B
flutter_villains-master/example/README.md
149B
flutter_villains-master/example/android/
-
flutter_villains-master/example/android/.gitignore
136B
flutter_villains-master/example/android/app/
-
flutter_villains-master/example/android/app/build.gradle
1.51KB
flutter_villains-master/example/android/app/src/
-
flutter_villains-master/example/android/app/src/main/
-
flutter_villains-master/example/android/app/src/main/AndroidManifest.xml
1.94KB
flutter_villains-master/example/android/app/src/main/java/
-
flutter_villains-master/example/android/app/src/main/java/com/
-
flutter_villains-master/example/android/app/src/main/java/com/yourcompany/
-
flutter_villains-master/example/android/app/src/main/java/com/yourcompany/examples/
-
flutter_villains-master/example/android/app/src/main/java/com/yourcompany/examples/MainActivity.java
370B
flutter_villains-master/example/android/app/src/main/res/
-
flutter_villains-master/example/android/app/src/main/res/drawable/
-
flutter_villains-master/example/android/app/src/main/res/drawable/launch_background.xml
434B
flutter_villains-master/example/android/app/src/main/res/mipmap-hdpi/
-
flutter_villains-master/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
544B
flutter_villains-master/example/android/app/src/main/res/mipmap-mdpi/
-
flutter_villains-master/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
442B
flutter_villains-master/example/android/app/src/main/res/mipmap-xhdpi/
-
flutter_villains-master/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
721B
flutter_villains-master/example/android/app/src/main/res/mipmap-xxhdpi/
-
flutter_villains-master/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
1.01KB
flutter_villains-master/example/android/app/src/main/res/mipmap-xxxhdpi/
-
flutter_villains-master/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
1.41KB
flutter_villains-master/example/android/app/src/main/res/values/
-
flutter_villains-master/example/android/app/src/main/res/values/styles.xml
361B
flutter_villains-master/example/android/build.gradle
470B
flutter_villains-master/example/android/gradle.properties
29B
flutter_villains-master/example/android/gradle/
-
flutter_villains-master/example/android/gradle/wrapper/
-
flutter_villains-master/example/android/gradle/wrapper/gradle-wrapper.jar
52.38KB
flutter_villains-master/example/android/gradle/wrapper/gradle-wrapper.properties
231B
flutter_villains-master/example/android/gradlew
4.85KB
flutter_villains-master/example/android/gradlew.bat
2.26KB
flutter_villains-master/example/android/settings.gradle
484B
flutter_villains-master/example/assets/
-
flutter_villains-master/example/assets/joe-gardner.jpg
76.89KB
flutter_villains-master/example/examples.iml
619B
flutter_villains-master/example/examples_android.iml
1.42KB
flutter_villains-master/example/ios/
-
flutter_villains-master/example/ios/.gitignore
501B
flutter_villains-master/example/ios/Flutter/
-
flutter_villains-master/example/ios/Flutter/AppFrameworkInfo.plist
863B
flutter_villains-master/example/ios/Flutter/Debug.xcconfig
30B
flutter_villains-master/example/ios/Flutter/Release.xcconfig
30B
flutter_villains-master/example/ios/Runner.xcodeproj/
-
flutter_villains-master/example/ios/Runner.xcodeproj/project.pbxproj
18.22KB
flutter_villains-master/example/ios/Runner.xcodeproj/project.xcworkspace/
-
flutter_villains-master/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
152B
flutter_villains-master/example/ios/Runner.xcodeproj/xcshareddata/
-
flutter_villains-master/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/
-
flutter_villains-master/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
3.25KB
flutter_villains-master/example/ios/Runner.xcworkspace/
-
flutter_villains-master/example/ios/Runner.xcworkspace/contents.xcworkspacedata
152B
flutter_villains-master/example/ios/Runner/
-
flutter_villains-master/example/ios/Runner/AppDelegate.h
103B
flutter_villains-master/example/ios/Runner/AppDelegate.m
420B
flutter_villains-master/example/ios/Runner/Assets.xcassets/
-
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/
-
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
2.46KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
10.85KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
564B
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
1.25KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
1.55KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
1KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
1.68KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
1.88KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
1.25KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
1.85KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
2.6KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
2.6KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
3.74KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
1.84KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
3.22KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
3.53KB
flutter_villains-master/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/
-
flutter_villains-master/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
391B
flutter_villains-master/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
68B
flutter_villains-master/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
68B
flutter_villains-master/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
68B
flutter_villains-master/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
336B
flutter_villains-master/example/ios/Runner/Base.lproj/
-
flutter_villains-master/example/ios/Runner/Base.lproj/LaunchScreen.storyboard
2.32KB
flutter_villains-master/example/ios/Runner/Base.lproj/Main.storyboard
1.57KB
flutter_villains-master/example/ios/Runner/Info.plist
1.51KB
flutter_villains-master/example/ios/Runner/main.m
227B
flutter_villains-master/example/lib/
-
flutter_villains-master/example/lib/villains1/
-
flutter_villains-master/example/lib/villains1/gallery/
-
flutter_villains-master/example/lib/villains1/gallery/villain_transition.dart
2.58KB
flutter_villains-master/example/lib/villains1/list/
-
flutter_villains-master/example/lib/villains1/list/list.dart
900B
flutter_villains-master/example/lib/villains1/main.dart
2.26KB
flutter_villains-master/example/lib/villains1/profile/
-
flutter_villains-master/example/lib/villains1/profile/profile.dart
8.3KB
flutter_villains-master/example/lib/villains1/utils.dart
25.57KB
flutter_villains-master/example/pubspec.yaml
1.88KB
flutter_villains-master/example/test/
-
flutter_villains-master/example/test/widget_test.dart
-
flutter_villains-master/flutter_villains.iml
1014B
flutter_villains-master/lib/
-
flutter_villains-master/lib/villain.dart
89B
flutter_villains-master/lib/villains/
-
flutter_villains-master/lib/villains/utils.dart
703B
flutter_villains-master/lib/villains/villains.dart
14KB
flutter_villains-master/media/
-
flutter_villains-master/media/profile.gif
101.02KB
flutter_villains-master/pubspec.yaml
1.69KB
flutter_villains-master/test/
-
flutter_villains-master/test/villains_test.dart
15.59KB

资源内容介绍

灵活且易于使用的页面转换
[![license](https://img.shields.io/github/license/Norbert515/flutter_villains.svg)](https://github.com/Norbert515/flutter_villains/blob/master/LICENSE)[![stars](https://img.shields.io/github/stars/Norbert515/flutter_villains.svg)](https://github.com/Norbert515/flutter_villains/stargazers)[![forks](https://img.shields.io/github/forks/Norbert515/flutter_villains.svg)](https://github.com/Norbert515/flutter_villains/network/members)[![Pub](https://img.shields.io/pub/v/flutter_villains.svg)](https://pub.dartlang.org/packages/flutter_villains)[![GitHub followers](https://img.shields.io/github/followers/norbert515.svg?style=social&label=Follow)](https://github.com/Norbert515)[![Twitter Follow](https://img.shields.io/twitter/follow/norbertkozsir.svg?style=social&label=Follow)](https://twitter.com/norbertkozsir)[![Build Status](https://travis-ci.com/Norbert515/flutter_villains.svg?branch=master)](https://travis-ci.com/Norbert515/flutter_villains)![](https://github.com/Norbert515/flutter_villains/blob/master/assets/icons8-joker-suicide-squad-96.png)# flutter_villains### What are heroes without villains?![profile-page](media/profile.gif "profile-page")_(Profile image from: https://unsplash.com/photos/pAs4IM6OGWI)__Check out the [article](https://medium.com/flutter-community/flutter-heroes-and-villains-bringing-balance-to-the-flutterverse-2e900222de41)._## What are villains?You keep seeing beautiful page transitions but you think to yourself those are too much work?Fear no more, villains are here to save you!When doing animations when a page transition occurs you'd usally define an `AnimationController` in the `initState()` and start it there. You'd also have to wrap your widgets in `AnimatedWidgets` to react to the `AnimationController`. Besides this being a lot of boilerplate code which clogs up you precious widgets, animating on exit isn't as trivial.Using this library you just wrap your widget you'd like to be animated when a page transition occurs in a `Villain` and everything is handled automatically.## Installation```dependencies: flutter_villains: "^1.2.1"```Run packages get and **import**:```import 'package:flutter_villains/villain.dart';```### Assembling pages with styleDefine animations to play when a page is opened.### Easy to use ```dart Villain( villainAnimation: VillainAnimation.fromBottom( relativeOffset: 0.4, from: Duration(milliseconds: 100), to: Duration(seconds: 1), ), animateExit: false, secondaryVillainAnimation: VillainAnimation.fade(), child: Divider( color: Colors.black, height: 32.0, ), ),```That's it. No `TickerProvider`s, no `AnimationController`s, no boilerplate, no worries.Remember the StaggeredAnimation tutorial? This is using [SequenceAnimation](https://github.com/Norbert515/flutter_sequence_animation) internally and there is therefore no need to specify durations as portions of a time-frame. It just works. With this basic setup the `Divider` fades in and moves up when a page transition occures (don't forget the `VillainTransitionObserver` more on that under *Code*).### Flexible The animation you'd like to use is not premade? Make it yourself with a few lines of code!```dart static VillainAnimation fade( {double fadeFrom = 0.0, double fadeTo = 1.0, Duration from = Duration.zero, Duration to: _kMaterialRouteTransitionLength, Curve curve: Curves.linear}) => VillainAnimation( from: from, curve: curve, to: to, animatable: Tween<double>(begin: fadeFrom, end: fadeTo), animatedWidgetBuilder: (animation, child) { return FadeTransition( opacity: animation, child: child, ); });```Every `VillainAnimation` needs an `Animatable` (most of the time it's a `Tween`) and an `AnimatedWidget`. Everything else is handled automatically.## CodeThere are two way of playing your villains.1) If you want them to automatically play when a page transition occurs (you probably want that) then add this to your `MaterialApp````dart return new MaterialApp( navigatorObservers: [new VillainTransitionObserver()],```2) Play villains in a given context manually.```dart VillainController.playAllVillains(context);```### Secondary AnimationYou can play up to two animations per `Villain`. You can always wrap Villains inside each other for _infinite_ animations!```dart Villain( villainAnimation: VillainAnimation.fromBottomToTop(0.4, to: Duration(milliseconds: 150)), animateExit: false, secondaryVillainAnimation: VillainAnimation.fade, child: Text( "Hi", style: Theme.of(context).textTheme.body1, ), ),```### ExtrasDefine whether the villain should play on entrance/ exit.```dart animateEntrance: true, animateExit: true,```When using the `VillainController` manually, it checks this bool to determine whether it should animate. ```dart static Future playAllVillains(BuildContext context, {bool entrance = true})```Villains entering the page are decoupled from the page transition, meaning they can be as long as they want. On the other hand, if a villain leaves the page, the animation is driven by the page transition.This means: - The exit animation is always as long a the exit page transition - Setting the duration doesn't change anything ## ExamplesTake a look at the example folder for three nice examples.## Features:The villain framework takes care of:- managing page transition callbacks- supplying animations- providing premade common animationsIn contrast to real world villains, these villains are **very** easy to handle.## ControllerCurrenty there are no controllers implemented to play individual villains by themselves. If you'd like to have that implemented I opened an issue discussing it. Check it out!Icon from https://icons8.com/ ## Getting StartedFor help getting started with Flutter, view our online [documentation](https://flutter.io/).For help on editing package code, view the [documentation](https://flutter.io/developing-packages/).

用户评论 (0)

发表评论

captcha

相关资源

YOLO系列算法训练数据格式转换脚本

内容概要:本资源提供了一套完整的Python脚本代码,用于将XLM和COCO格式的目标检测数据集转换为YOLO格式。内容概要上,该脚本通过读取XLM或COCO数据集的标注文件(如JSON格式),自动解析图像信息、类别标签及边界框坐标,并转换为YOLO算法所需的格式(通常是TXT文件)。适用人群:学生:对目标检测、深度学习及数据预处理感兴趣的初学者。研发人员:具备一定编程基础,特别是Python和深度学习领域,希望快速实现数据集格式转换以提高工作效率的开发者。科研人员:在目标检测领域进行研究的学者,需要处理多种格式数据集以进行算法验证和优化。能学到什么:掌握XLM、COCO与YOLO数据格式的差异及转换方法。学习Python脚本编写技巧,特别是文件读写、数据处理及逻辑判断。了解目标检测数据集标注文件的解析与转换流程。阅读建议:在阅读前,建议对XLM、COCO和YOLO数据格式有一定的了解。逐步执行脚本中的代码,理解每一步的作用,特别是数据解析和格式转换的逻辑。尝试修改脚本中的参数和路径,以适应不同的数据集和需求。遇到问题时,可参考相关文档或寻求社区帮助

4.94KB24积分

YOLO系列算法使用bdd100k数据集训练的数据预处理及格式转换python代码

内容简介本资源提供了一套针对BDD100K数据集的Python代码,旨在辅助用户完成YOLO系列算法训练前的数据预处理及格式转换工作。内容概要上,该代码能够处理BDD100K数据集的复杂标注信息,包括图像路径、类别标签、边界框坐标等,并将其转换为YOLO算法训练所需的特定格式(如TXT文件),同时可能包括图像增强、归一化等预处理步骤,以优化训练效果。适用人群:深度学习爱好者与研究者,特别是专注于目标检测领域的学者和学生。开发人员,需要利用BDD100K数据集进行YOLO算法训练的工程师。寻求提升数据处理效率与准确性的数据科学家。能学到什么:了解BDD100K数据集的标注结构与特点。掌握将BDD100K数据集转换为YOLO训练格式的方法。学习图像预处理技术,如数据增强、归一化等,在目标检测训练中的应用。提升Python编程能力,特别是文件操作、数据处理及条件逻辑的实现。阅读建议:在阅读前,建议对BDD100K数据集和YOLO算法有一定的了解。逐步执行代码,理解每一步的作用,特别是数据解析、预处理和格式转换的逻辑。尝试修改代码中的参数,如调整数据增强的

4.31KB23积分

python3.8.2版本

python3.8.2版本

51.34MB14积分

圈子系统可发帖,可开语音,可提取短视频

● 她是谁??? ●系统基于TP6+Uni-app框架开发;客户移动端采用uni-app开发,管理后台TH6开发。● 系统支持微信公众号端、微信小程序端、H5端、PC端多端账号同步,可快速打包生成APP● 目前已开发升级至4.2版适用领域一、行业圈子:您可以使用在你的行业领域,让本行业的有交流和联系的圈子。二、地方圈子:您可以使用在本地区,运营地方性的综合圈子或论坛,搭配商城频道,可以做类似美团的本地到店消费,搭配交友频道可做本地社交。搭配圈子可做信息发布类。三、纯社交圈子:搭配交友频道,和语聊房间频道可运营娱乐社交类APP,可实现VIP充值盈利和虚拟礼物主播分成模式,四、游戏开黑圈子:搭配语聊与交友。可作为游戏开黑组队和代练模式交易。五、兴趣圈子:你所熟悉的某个兴趣点专注领域,种草社区结合商城系统。直接种草和电商结合。六、活动搭子类:为用户提供活动组局、搭子、商家活动发布类产品。七、我们提供十多款丰富功能的插件,可选择搭配。

60.5MB12积分