base_scaffold 1.1.5
base_scaffold: ^1.1.5

Flutter Android iOS web

A Flutter package for base scaffold. After importing this plugin to your project as usual, import base_scaffold.dart to use package.

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 for base_scaffold.

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.

Note : For more base_scaffold properties and details please check here : https://pub.dev/documentation/base_scaffold/latest/base_scaffold/BaseScaffold-class.html

2
likes
110
pub points
50%
popularity

A Flutter package for base scaffold. After importing this plugin to your project as usual, import base_scaffold.dart to use package.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

pinkaljpatel1995@gmail.com

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on base_scaffold