Coarse Widgets

A collection of pre-developed widgets to ease the development cycle and reduce the redundant code.

Installing

dependencies:
  coarse_widgets: ^0.0.1

Import

import 'package:coarse_widgets/coarse_widgets.dart';

Usage

CommonWidgets CommonWidgets = CommonWidgets(context);

// Build Scaffold
  Scaffold buildScaffold() {
    return Scaffold(
      appBar: CommonWidgets.appBar(
        title: "Home",
      ),
    );
  }
// Build a loader in just one single line.
CommonWidgets.iaLoader()

Console Logger

/// Use the [cwLog] to print the data on to the console.
cwLog.log("This is just a demo console log.");

// Additionally, you can also specify the kind of log this is going to be.
cwLog.log("Failed: '$e'.", level: Level.error);

/// Here is the list of all the levels of [cwLog] available.
/*
    * verbose
    * debug
    * info
    * warning
    * error
    * wtf
    * nothing
*/

Bugs/Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on Github and I'll look into it. Pull request are also welcome.

Authors

Sagar Ghag

License

MIT License

Libraries

coarse_widgets