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:mm or HH:mm:ss strings.

Functions

generateMaterialColor(Color color) → MaterialColor
Builds a MaterialColor swatch from color.
generateRandomString(int length) → String
Generates a random string of length characters.
Opens uri with the platform launcher.
shadeColor(Color color, double factor) → Color
Returns color with every channel darkened by factor.
shadeValue(int value, double factor) → int
Darkens value by factor, clamped to 0..255.
tintColor(Color color, double factor) → Color
Returns color with every channel lightened by factor.
tintValue(int value, double factor) → int
Mixes value toward 255 by factor, clamped to 0..255.