GitHub 儲存庫abdelrahmanelmarakby/Ease

輕鬆

此倉儲用於存放任何可在 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 text widget to ease its usage
  • 2- custom text field widget with cool validation UI
  • 3-super cool animated splash screen
  • 4- easy to use geolocator location 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
Elmarakbeno GitHub avatar
GitHub 作者

Elmarakbeno ↗

egypt
語言Dart

分類

使用的依賴

依賴清單 6 項

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗