base_scaffold 1.0.6

  • Readme
  • Changelog
  • Example
  • Installing
  • new64

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.

1.0.6 #

  • Added readme in example demo.

1.0.5 #

  • URL fix to Demo gif in readme.

1.0.4 #

  • Demo gif added to readme.

1.0.3 #

  • Added new example with use case of toolbar, screen loader and on screen loader.
  • Resolve issue regarding null body.
  • Added TextStyle for toolbar related text.

1.0.2 #

  • Rename file from app_toolbar to base_toolbar.

1.0.1 #

  • Change description.

1.0.0 #

  • Added description for this package use and information how to use with example.

0.0.2 #

  • Added CHANGELOG.md.

0.0.1 #

  • Initial release.

example/README.md

base_scaffold #

pub package

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: #

For properties which are available in base_scaffold. Please refer this : base_scaffold Wiki

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  base_scaffold: ^1.0.6

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:base_scaffold/base_scaffold.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
27
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
64
Learn more about scoring.

We analyzed this package on Feb 26, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.8

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test