PlayX Core
Core package for playx eco system contains shared classes and utilities.
Features
- Common
utilities
andpackages
across PlayX packages - Common extensions that is needed for different apps.
Prefs
facade : Key value pair storage powered bySharedPreferences
.SecurePreferences
facade : Key value pair encrypted storage powered bySecurePreferences
.bootCore
function : inject and setup what is necessary .- Exports : packages like
get
,readable
.
Playx:
this packages is not for developers to use in day to day do not use it directly in your project
Consider using our Playx Package: Which comes prepackaged with Playx Theme with more features and is easy to use.
Installation
in pubspec.yaml
add these lines to dependencies
playx_core: ^0.1.2
Usage
Boot the core
void main ()async{
WidgetsFlutterBinding.ensureInitialized();
/// boot the core
await PlayXCore.bootCore();
/// run the real app
runApp(const MyApp());
}
Thats it
You can now access PlayxCore capabilities like Prefs
on your app.
See Also:
Playx : Playx eco system helps with redundant features , less code , more productivity , better organizing.
Playx_theme :multi theme features for flutter apps from playx eco system