easy_everything 0.1.0
easy_everything: ^0.1.0 copied to clipboard

A new Flutter package. Helping developers to build UI quickly, I try to build on existing widgets and make them useful and beautiful.

Easy Widget #

A new Flutter package.

Getting Started #

For work reason I needed to change some properties so I built this widget with rounded_loading_button in mind. I have added icons, optionally added loading widgets, gradient color,... Since I'm a newbie, I'm looking forward to everyone's suggestions, thanks. Get an idea from a package on pub.dev Link rounded loading: rounded_loading_button.

Required version #

SDK: ">=2.12.0 <3.0.0"
FLUTTER: ">=2.0.0"

Example #

Ví dụ này có thêm flutter_spinkit .

class MyExample extends StatelessWidget {
  final EasyEverythingButtonController controller =
      EasyEverythingButtonController();

  final duration = 800;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SizedBox.expand(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Padding(
              padding: const EdgeInsets.symmetric(horizontal: 0),
              child: EasyEverythingButton(
                controller: controller,
                durationAnimation: duration,
                widgetLoading: SpinKitSquareCircle(
                  color: Colors.white,
                  size: 20,
                ),
                onTap: () async {
                  controller.start();
                  await fetchData();
                  controller.success();
                  await Future.delayed(Duration(milliseconds: duration));
                  controller.stop();
                },
                iconRight: Icons.ac_unit,
                iconLeft: Icons.add,
              ),
            )
          ],
        ),
      ),
    );
  }

  Future<void> fetchData() async {
    await Future.delayed(Duration(seconds: 2));
    return;
  }
}
1
likes
120
pub points
9%
popularity

A new Flutter package. Helping developers to build UI quickly, I try to build on existing widgets and make them useful and beautiful.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache 2.0 (LICENSE)

Dependencies

auto_size_text_pk, flutter, flutter_svg, rxdart

More

Packages that depend on easy_everything