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