✨ 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

Shubham Singhal

⭐️ License

MIT License

Libraries

base_classes
constants
custom_app_bar
custom_button
custom_center_loader
custom_extension
custom_form_hint
custom_form_label
custom_popup_route
custom_route
custom_scaffold
custom_text
input_formats
loader_chasing_dots
loader_circle
loader_cube
loader_fading_circle
loader_fading_cube
loader_three_bounce
loader_wave
on_init
squash_effect
strings
styles
theme_provider
toast
toast_animate
tween_delay