轻松
此仓库用于存放任何可在 Flutter 中重复使用的项目,如自定义组件 🟥、动画 🌟 等更多内容
- 星标
- 98
- 复刻
- 11
- 最近推送(UTC)
- 2022年12月3日
- 项目状态
- 未归档
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
Ease
This packa is for anything that can be reusable in flutter like custom widgets 🟥, animations 🌟and more.
Features
- 1-custom
textwidget to ease its usage - 2- custom
text fieldwidget with cool validation UI - 3-super cool animated
splash screen - 4- easy to use
geolocatorlocation service - 5- dart extension to convert default colors to hex colors
- 6-dynamic theme with persistence that can be implemented in 1 min
- 7-the easiest localization implementation
- 8-credit card widget
Getting started
go to your Android/app/build.gradle file and edit your compileSdkVersion to 31
android {
compileSdkVersion 31
Usage
Widgets and how to use them
TextFormField with simple validation indicator
TxtForm(
controller:myEditingController,
)
Text with simplified usage
Txt("Hello World",
color:Colors.blue
)
SplashScreen With animation
SplashScreenWidget(
homePage:HomeScreen(),
logo:Image.asset("assets/logo");
slogan:"PR are welcome"
)
Services and how to use them
in each service, you will find what to import and how to use
eg: Location Service will tell you to use Getx and geolocator package. and use it like that
Position location= await LocatorService.determinePosition();
this how to add dark and light theme in your project
var myThemes=Theme(ThemeData.light,ThemeData.dark);
MaterialApp(
theme:myThemes.light
darkTheme:myThemes.dark
themeMode:ThemeService().theme
)
ThemeService().switchTheme();
easy isn't it ??
Additional information
if you have any idea that you think will be a good addittion contribure or add an issue to the github repo feel stuck on something ? join our telegram group
https://t.me/joinchat/p9O1YRT_NlQwZDZk
just wish and I will do my best to add it super fast,Please Star and support this repo
分类
使用的依赖
依赖清单 6 项
- flutter
{"sdk":"flutter"} - get_storage
^2.0.3 - get
^4.3.8 - geolocator
^7.7.1 - flutter_test开发依赖
{"sdk":"flutter"} - flutter_lints开发依赖
^1.0.4
如何选择适合项目的代码仓?
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
- 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
- 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
- 使用前在 GitHub 核对 README、许可证与 Issues。
来源与维护
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗