https://github.com/abdelrahmanelmarakby/ease
This repo is for anything that can be reusable in flutter like custom widgets π₯, animations πand more
https://github.com/abdelrahmanelmarakby/ease
android dart dartlang flutter
Last synced: 4 months ago
JSON representation
This repo is for anything that can be reusable in flutter like custom widgets π₯, animations πand more
- Host: GitHub
- URL: https://github.com/abdelrahmanelmarakby/ease
- Owner: abdelrahmanelmarakby
- License: mit
- Created: 2021-10-09T08:19:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-03T00:32:17.000Z (over 3 years ago)
- Last Synced: 2026-01-11T10:38:25.435Z (6 months ago)
- Topics: android, dart, dartlang, flutter
- Language: Dart
- Homepage: https://pub.dev/packages/ease
- Size: 63.5 KB
- Stars: 97
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 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```
``` dart
android {
compileSdkVersion 31
```
## Usage
### Widgets and how to use them
TextFormField with simple validation indicator
```dart
TxtForm(
controller:myEditingController,
)
```
Text with simplified usage
```dart
Txt("Hello World",
color:Colors.blue
)
```
SplashScreen With animation
```dart
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
```dart
Position location= await LocatorService.determinePosition();
```
this how to add dark and light theme in your project
``` dart
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
##
### just wish and I will do my best to add it super fast,Please Star and support this repo