my_core 0.1.2 copy "my_core: ^0.1.2" to clipboard
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 RouteService against flutter_polyline_points ^3.1.0: the Google Maps API key now goes to the PolylinePoints(apiKey: ...) constructor and getRouteBetweenCoordinates no longer takes the removed googleApiKey parameter.

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 a CoreContext (DI-agnostic) — wire its controllers into Bloc / GetX / Provider. FlutterCore.config for global access. CoreService enum opts into localization, theme, network, storage, deviceInfo (any subset).
  • Framework-agnostic, stream-based LocaleController / ThemeController (implement LocaleService / ThemeService); persist via shared_preferences.
  • Theme: AppTheme.build(AppColors, font, isDark)ThemeData, ColorsModel extension. AppColors is implemented by your app (no shipped palette).
  • Localization: CoreLocale (extendable, per-app translations + fonts), AppTranslation engine, AppLocalizations + context.tr. Core ships no key strings — your app owns its keys; Validators return a ValidationError enum.
  • Storage: TokenStorage (SecureTokenStorage / InMemoryTokenStorage) and KeyValueStorage (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 plain StreamBuilder; example/ADAPTERS.md shows Bloc / GetX / Provider.
1
likes
160
points
17
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A configurable Flutter core package: theming, localization, networking, storage, and device info via framework-agnostic controllers, with no state-management lock-in.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dartz, device_info_plus, dio, equatable, flutter, flutter_polyline_points, flutter_secure_storage, google_maps_flutter, package_info_plus, shared_preferences

More

Packages that depend on my_core