my_core 0.1.2
my_core: ^0.1.2 copied to clipboard
A configurable Flutter core package: theming, localization, networking, storage, and device info via framework-agnostic controllers, with no state-management lock-in.
0.1.2 #
- Fix
RouteServiceagainstflutter_polyline_points^3.1.0: the Google Maps API key now goes to thePolylinePoints(apiKey: ...)constructor andgetRouteBetweenCoordinatesno longer takes the removedgoogleApiKeyparameter.
0.1.0 #
A configurable Flutter core package. Material-aware
(builds ThemeData) with no state-management lock-in and no baked-in
content (colors/fonts/languages come from your app).
FlutterCore.init(config, services, ...)returns aCoreContext(DI-agnostic) — wire its controllers into Bloc / GetX / Provider.FlutterCore.configfor global access.CoreServiceenum opts intolocalization,theme,network,storage,deviceInfo(any subset).- Framework-agnostic, stream-based
LocaleController/ThemeController(implementLocaleService/ThemeService); persist via shared_preferences. - Theme:
AppTheme.build(AppColors, font, isDark)→ThemeData,ColorsModelextension.AppColorsis implemented by your app (no shipped palette). - Localization:
CoreLocale(extendable, per-app translations + fonts),AppTranslationengine,AppLocalizations+context.tr. Core ships no key strings — your app owns its keys;Validatorsreturn aValidationErrorenum. - Storage:
TokenStorage(SecureTokenStorage/InMemoryTokenStorage) andKeyValueStorage(SharedPrefsStorage/InMemoryKeyValueStorage) with string/bool/JSON (readJson/writeJson). - Network:
ApiClient+DioApiClient(base URL/timeouts from config),ApiResponse. - Device/app info:
DeviceInfoService,AppInfo. - Entities:
GeoPosition,GeoAddress,LocationPermissionStatus,SearchPrediction. - Domain service contracts (app implements + registers):
LocationService,GeocodingService,NotificationService,SoundService,ForegroundService. - Concrete maps services:
RouteService,SearchService(Google Maps/Places). - Errors/domain:
Failure(+subtypes),ServerException,CacheException,ServerErrorKeys,UseCase/NoParams,Validators. - Shared widgets:
showAppMessageDialog,showAppBottomSheet,StatusCard,ImagePickerField. example/— runnable Flutter app wiring it all with plainStreamBuilder;example/ADAPTERS.mdshows Bloc / GetX / Provider.