core_utils_kit library
Small Flutter utilities: secure key-value storage, duration and date formatting, material color generation, URL opening, and app lifecycle watching without extra state-management dependencies.
Classes
- DateFormats
- Date and duration formatting helpers.
- InMemoryKeyValueStore
- A KeyValueStore backed by an in-memory Map.
- KeyValueStore
- A minimal asynchronous key-value store abstraction.
- SecureStorageService
-
A KeyValueStore backed by
FlutterSecureStorage.
Mixins
-
LifecycleWatcher<
T extends StatefulWidget> - Mixes app lifecycle callbacks into a State.
Extensions
- BuildContextX on BuildContext
- Convenience helpers on BuildContext.
- DurationFormatting on Duration
-
Formats Duration values as
HH:mmorHH:mm:ssstrings.
Functions
-
generateMaterialColor(
Color color) → MaterialColor -
Builds a MaterialColor swatch from
color. -
generateRandomString(
int length) → String -
Generates a random string of
lengthcharacters. -
openLink(
Uri uri) → Future< bool> -
Opens
uriwith the platform launcher. -
shadeColor(
Color color, double factor) → Color -
Returns
colorwith every channel darkened byfactor. -
shadeValue(
int value, double factor) → int -
Darkens
valuebyfactor, clamped to0..255. -
tintColor(
Color color, double factor) → Color -
Returns
colorwith every channel lightened byfactor. -
tintValue(
int value, double factor) → int -
Mixes
valuetoward 255 byfactor, clamped to0..255.