✨ Base Classes

pub package pub package

Make use of all custom base classes for code simplicity

🎖 Installing

dependencies:
  base_classes: 

Getting Started

You basically have multiple base widgets that you can use: • CustomScaffold, • CustomButton, • CustomText, • CustomTextForm Field, • CustomTextForm Appbar, • Constant class - It consist of various ease constant instances , • Navigation class, • Shared Preference class, • AfterInit Class - For getting context just after init method, • Basic styles and Strings class, • Loader class,

🚀 Showcase Demo


Example:

CustomScaffold(
        appBar: CustomAppBar(
            leading: kBackArrow(context,
                onTap: () {}, arrowColor: blackColor, imagePath: 'left_arrow'),
            preferredSize: kAppbarPreferredHeight,
            title: Strings.home,
            scaffoldKey: scaffoldKey),
        resizeToAvoidBottomPadding: true,
        onWillPop: () => Future.value(false),
        isLoading: /*true*/ false,
        body: Container(
            child: kScrollingView(Column(
                mainAxisAlignment: MainAxisAlignment.center,
                children: <Widget>[
                  SizedBox(height: 150.0),
                  CustomText(text: Strings.ok, fontSize: size20),
                  SizedBox(height: 150.0),
                  CustomTextFormLabel(
                      keyBoardType: TextInputType.text,
                      labelText: Strings.enterHere,
                      textInputAction: TextInputAction.done),
                  SizedBox(height: 150.0),
                  CustomButton(
                      onTap: () {
                        kYesNoSheet(
                            context: context,
                            yes: () {},
                            no: () {},
                            heading: Strings.home);
                      },
                      text: Strings.submit,
                      textColor: whiteColor,
                      width: 150.0,
                      height: 55.0,
                      buttonColor: orangeColor),
                  SizedBox(height: 150.0),
                  kClickAction(
                      context: context,
                      child: kNetworkCachedCircularImage(
                          context, Strings.dummyImageURL,
                          height: 150.0, width: 150.0),
                      onTap: () {
                        kYesNoDialog(
                            context: context,
                            yes: () {},
                            no: () {},
                            centerText: Strings.home);
                      }),
                  SizedBox(height: 150.0),
                ])),
            margin: EdgeInsets.symmetric(horizontal: kBodyPadding)),
        scaffoldKey: scaffoldKey)

☀️ Author

Jeremiah Ogbomo

⭐️ License

MIT License

Libraries

after_init
base_classes
center_progress_loader
constants
custom_app_bar
custom_button
custom_scaffold
custom_text
custom_text_hint_form
custom_text_label_form
fading_circle
input_formats
size_provider_widget
strings
styles
system_padding
three_dots
toast
tweens