Last updated:
0 purchases
base classes
✨ Base Classes #
Make use of all custom base classes for code simplicity
🎖 Installing #
dependencies:
base_classes:
copied to clipboard
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)
copied to clipboard
☀️ Author #
⭐️ License #
MIT License
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.