flutter_easy_utils

Last updated:

0 purchases

flutter_easy_utils Image
flutter_easy_utils Images
Add to Cart

Description:

flutter easy utils

Flutter Easy Utils #
This package allows you to setup a powerful Auto Configure App with localization system , Provider and more. and in only a few minutes.
Features #
Here are some features:

Easy, lightweight, open-source.
Auto configure Localization.
Auto configure MaterialApp.
Auto configure Colors and Fonts.
Dark and Light mode.
Change languages.
Listen to internet connection.
easy tools.
getString etc from SharedPreference.
prepared dialogs.
prepared snackBars.
prepared admob ads (reward , banner and full screen).
prepared navigate to screen with page transaction.
size config to responsive screen dimensions.
Powerful API response handler
and more ...
MIT licensed.
Easily extensible.

Getting Started #
Installing #
Add this to your package's pubspec.yaml file:
dependencies:
flutter_easy_utils: ^1.0.3
copied to clipboard
Import #
import 'package:flutter_easy_utils/flutter_easy_utils.dart';
copied to clipboard
How to use #
First, initialize EasyApp in your App:
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return EasyApp(
builder: (context) => Home(),
);
}
}
copied to clipboard
Then you create a folder named languages in your assets directory with the defined languages in it.
An example structure could be :
assets
└── languages
├── en.json
└── ar.json
copied to clipboard
Here's an example of en.json :
{
"hello": "Hello !"
}
copied to clipboard
and an example of ar.json :
{
"hello": "مرحبا بك"
}
copied to clipboard
Admob #
Android Specific Setup #
Update your AndroidManifest.xml
Add your AdMob App ID to your app's AndroidManifest.xml file by adding the <meta-data> tag shown below. You can find your App ID in the AdMob UI. For android:value insert your own AdMob App ID in quotes, as shown below.
You can use these test App ID's from Admob for development:
Android: ca-app-pub-3940256099942544~3347511713
iOS: ca-app-pub-3940256099942544~1458002511
copied to clipboard
<manifest>
<application>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713"/>
</application>
</manifest>
copied to clipboard
Then, enjoy yourself:
Navigate to HomeScreen #
old #
Navigator.of(context).push(PageTransition(child: HomeScreen(), type: PageTransitionType.leftToRight));
copied to clipboard
with Easy Utils #
goTo(context, HomeScreen(), trans: PageTransitionType.leftToRight);
copied to clipboard
translate text #
old #
EzLocalization.of(context)!.get('hello');
copied to clipboard
now :) #
tran(context , "hello");
copied to clipboard
it's really easy :)

You can say Thank You, Donate to the developer.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.