suitup 1.0.9
suitup: ^1.0.9 copied to clipboard
A bunch of features and stuff to help me create awesome apps
A bunch of features and stuff to help me create awesome apps.
Features #
SuitupObserverto help the use of ValueNotifier/ChangeNotifier, note that it isn't a state manager, it's a shortcut forAnimatedWidgetSuitupNotifierstatus based to watch some value that is rendered bySuitupNotifierBuilderSuitupListNotifierto make a list observable bySuitupObserverSuitupStateto automaticaly inject theSuitupControlleron the page usingGetItSuitupStatusstands for the useful statuses likeloading,idle, etc...SuitupThemeto make a theme for your layout setting up the colors and typographySuitupTextFieldto create text fields with a pre defined styleSuitupCancellablea helper that is canceled if is called a second timesuitup_functions.dartwith some helper functionssuitup_extensions.dartwith some extension methods to make our lives easier
Getting started #
flutter pub add suitup then add the import from your dart file
import 'package:suitup/suitup.dart';
Usage #
Basicaly, everything here is just import and use it, but you can change the colors theme by calling SuitupTheme.setup(SuitupColorAbstract). And so with the text theme.
SuitupObserver acts like a state manager, but it's from Flutter itself using ValueNotifier.
final count = ValueNotifier<int>(0);
final status = ValueNotifier<SuitupStatus>(SuitupStatus.idle);
SuitupObserver(
/// You can observe only one object
// observable: count,
/// Or else you can observe a bunch of objects
observables: [
count,
status,
],
builder: (context) {
/// Your implementation
}
);
Additional information #
I hope this package can be so useful for you as it is for me.