suitup 1.0.6 copy "suitup: ^1.0.6" to clipboard
suitup: ^1.0.6 copied to clipboard

outdated

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 #

  1. SuitupState to automaticaly inject the SuitupController on the page using GetIt
  2. SuitupStatus stands for the page statuses like loading, idle, etc...
  3. SuitupTheme to make a theme for your layout setting up the colors and typography
  4. SuitupObserver to help the use of ValueNotifier/ChangeNotifier, note that it isn't a state manager, it's a shortcut for AnimatedWidget
  5. SuitupTextField to create text fields with a pre defined style
  6. SuitupListNotifier to make a list observable by SuitupObserver
  7. SuitupCancellable a helper that is canceled if is called a second time
  8. suitup_functions.dart with some helper functions
  9. suitup_extensions.dart with 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.

2
likes
0
points
137
downloads

Publisher

unverified uploader

Weekly Downloads

A bunch of features and stuff to help me create awesome apps

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

async, flutter, get_it, google_fonts, intl

More

Packages that depend on suitup