base_scaffold

pub package

A Flutter package for base scaffold. After importing this plugin to your project as usual, import base_scaffold.dart and use the BaseScaffold() for ready feature like toolbar, loaderView and etc...

Demo (example/base_scaffold_demo)

Getting Started

After importing this plugin to your project as usual, import below to use base_scaffold.

import 'package:base_scaffold/base_scaffold.dart';  
You are ready to use the base_scaffold.

How to use?

@override
  Widget build(BuildContext context) {
    return BaseScaffold(
      body: myBody(),

      toolbarTitle: 'Team',
      toolbarRightText: 'Add',
      toolbarRightTextClick: () {
        // your event
      },

      bodyBackgroundColor: Colors.white,
    );
  }

Properties:

These are below available properties in this package.

Propertiestypedetails
bodyWidgetIt contains the body of the screen which will be display in safe area and between toolbar and bottom navigation bar.
showToolbarboolShow/Hide toolbar. Default is true
toolbarWidgetTo design custom toolbar.
toolbarLeftIcondynamicSet icon or image on left side of toolbar. Icon can be String for Image.assets or Icon, it will be depend on toolbarLeftIconType.
toolbarLeftIconTypeStringType of left Icon in toolbar. It can be image assets or Icon. For e.g : AppToolbar.IMAGE_TYPE_IMAGE or AppToolbar.IMAGE_TYPE_ICON.
toolbarLeftIconClickFunctionGet callback click of left icon.
toolbarRightIcondynamicSet icon or image on right side of toolbar. Icon can be String for Image.assets or Icon, it will be depend on toolbarRightIconType.
toolbarRightIconTypeStringType of right Icon in toolbar. It can be image assets or Icon. For e.g : AppToolbar.IMAGE_TYPE_IMAGE or AppToolbar.IMAGE_TYPE_ICON.
toolbarRightIconClickFunctionGet callback click of rith icon.
toolbarTitleStringTitle of toolbar.
toolbarRightTextStringSet some text to right instead of icon.
toolbarRightTextClickFunctionGet callback click of right text.
toolbarLeftTextStringSet some text to left instead of icon.
toolbarLeftTextClickFunctionGet callback click of left text.
toolbarBackgroundColorColorSet toolbar background color.
toolbarHeightdoubleSet custom toolbar height as per requirement. Minimum height should be 50.
toolbarLeftTextStyleTextStyleSet custom text style for left toolbar text.
toolbarTitleTextStyleTextStyleSet custom text style for title toolbar text.
toolbarRightTextStyleTextStyleSet custom text style for right toolbar text.
isScreenLoadingboolSet bool to show/hide loader view or entire screen body.
isScreenLoadingWithBackgroundboolSet bool to show/hide loader view on screen body.
screenLoaderViewWidgetSet custom widget for in screen loader view.
backgroundScreenLoaderViewWidgetSet custom widget for on screen loader view.
scaffoldBackgroundColorColorSet scaffold background color.
bodyBackgroundColorColorSet body background color.

Libraries

base_scaffold
base_toolbar