suitup 1.0.2
suitup: ^1.0.2 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 #
SuitupStateto automaticaly inject theSuitupControlleron the page usingGetItSuitupLoadingto show up a loading widget usingflutter_easyloadingSuitupMessageto show up messages of typeserror,infoandsuccessSuitupStatusstands for the page statuses likeloading,idle, etc...SuitupThemeto make a theme for your layout setting up the colors and typographySuitupObserverto help the use of ValueNotifier/ChangeNotifier, note that it isn't a state manager, it's a shortcut forAnimatedWidgetSuitupTextFieldto create text fields with a pre defined style
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.
To use SuitupLoading and SuitupMessage you need first to run the SuitupLoading.initOnMain() on your main file.
Future<void> main() async {
// Start initializing the Firebase
WidgetsFlutterBinding.ensureInitialized();
SuitupLoading.initOnMain();
}
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.