majesty 0.0.3

  • Readme
  • Changelog
  • Installing
  • new43

Majesty #

A Flutter package for customizing bottom navigation bar.

Bottom navigation bars: #

MajestySubtleBottomNavBar
MajestySwipeNavigationBar

Show some ❤️ and star the repo to support the project. Also , you are more than welcome to contribute!

MajestySubtleBottomNavBar #

Demo : #

ezgif com-video-to-gif (6)

Example : #

     Scaffold(
        bottomNavigationBar: _bottomNavBar(),
      ),

    MajestySubtleBottomNavBar _bottomNavBar() {
    return MajestySubtleBottomNavBar(
      backgroundColor: Color(0xff090708),
      animationCurve: Curves.bounceOut,
      selectorColor: Colors.redAccent,
      captions: ['Home', 'Search', 'Bookmarks'],
      selectedItemColor: Colors.white,
      nonSelectedIconColor: Color(0xff616064),
      captionsTextStyles: TextStyle(color: Colors.white),
      items: <Widget>[
        Icon(Icons.home, size: 24),
        Icon(Icons.search),
        Icon(Icons.bookmark)
      ],
      onItemPressed: (i) => print(i),
        );
       }
     

MajestySwipeNavigationBar #

MajestySwipeNavigationBar consists of two main parts :

MajestySwipeScaffoldUsed as a wrapper to the Scaffold widget
MajestySubtleBottomNavBarUsed for bottom navigation bar of scaffold

Demo : #

ezgif com-video-to-gif (7)

Example : #

    MaterialApp(
      home: MajestySwipeScaffold(
        child: Scaffold(
          backgroundColor: Colors.black12,
          bottomNavigationBar: MajestySubtleBottomNavBar(
              captions: ['Home', 'Search', 'Profile'],
              backgroundColor: Colors.white,
              animationDuration: Duration(milliseconds: 200),
              selectorColor: Colors.red,
              captionsTextStyles:
                  TextStyle(color: Colors.black, fontWeight: FontWeight.w600),
              items: <Widget>[
                Icon(Icons.home),
                Icon(Icons.search),
                Icon(Icons.supervised_user_circle)
              ],
              onItemPressed: (int i) => print(i),
        ),
      ),

[0.0.3] - 6/5/2020. #

  • Bug fixes in Majesty swipe nav bar.

Use this package as a library

1. Depend on it

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


dependencies:
  majesty: ^0.0.3

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:majesty/MajestySubtleNav/subtle_bottomnavbar.dart';
import 'package:majesty/MajestySwipeNav/swipe_nav.dart';
import 'package:majesty/MajestySwipeNav/swipenav_controller.dart';
import 'package:majesty/MajestySwipeNav/swipe_scaffold.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
6
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
50
Overall:
Weighted score of the above. [more]
43
Learn more about scoring.

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

  • Dart: 2.8.1
  • pana: 0.13.8-dev
  • Flutter: 1.17.0

Health suggestions

Format lib/MajestySubtleNav/subtle_bottomnavbar.dart.

Run flutter format to format lib/MajestySubtleNav/subtle_bottomnavbar.dart.

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: Documenting majesty... Initialized dartdoc with 524 libraries in 88.4 seconds Generating docs for library majesty from package:majesty/MajestySwipeNav/swipe_nav.dart... Generating docs for library majesty from package:majesty/MajestySwipeNav/swipe_scaffold.dart... Generating docs for library subtle_bottomnavbar from package:majesty/MajestySubtleNav/subtle_bottomnavbar.dart... Generating docs for library swipenav_controller from package:majesty/MajestySwipeNav/swipenav_controller.dart... Validating docs... Documented 4 public libraries in 15.5 seconds stderr: warning: majesty has no library level documentation comments, from majesty: (file:///tmp/pub-dartlang-dartdocCEZZTC/pkg/lib/MajestySwipeNav/swipe_nav.dart:1:9) warning: majesty has no library level documentation comments, from majesty: (file:///tmp/pub-dartlang-dartdocCEZZTC/pkg/lib/MajestySwipeNav/swipe_scaffold.dart:1:9) error: failed to write file at: majesty/majesty-library.html for symbol majesty: (file:///tmp/pub-dartlang-dartdocCEZZTC/pkg/lib/MajestySwipeNav/swipe_scaffold.dart:1:9) conflicting with file already generated by majesty: (file:///tmp/pub-dartlang-dartdocCEZZTC/pkg/lib/MajestySwipeNav/swipe_nav.dart:1:9) Dartdoc generates a path and filename to write to for each symbol. majesty conflicts with another symbol in the generated path, and therefore can not be written out. Changing the name, library name, or class name (if appropriate) of one of the conflicting items can resolve the conflict. Alternatively, use the @nodoc tag in one symbol's documentation comments to hide it. warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar-class.html (from index.json) warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar/MajestySwipeNavigationBar.html (from index.json) warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar/animationCurve.html (from index.json) warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar/animationDuration.html (from index.json) warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar/backgroundColor.html (from index.json) warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar/captions.html (from index.json) warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar/captionsTextStyle.html (from index.json) warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar/createState.html (from index.json) warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar/items.html (from index.json) warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar/nonSelectedIconColor.html (from index.json) warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar/onItemPressed.html (from index.json) warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar/selectedItemColor.html (from index.json) warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar/selectorColor.html (from index.json) warning: dartdoc generated a broken link to: majesty/MajestySwipeNavigationBar/swipedHeight.html (from index.json) found 16 warnings and 1 error Unhandled exception: dartdoc encountered 1 errors while processing. #0 Dartdoc.generateDocs (package:dartdoc/dartdoc.dart:202:7)

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and majesty.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
flutter 0.0.0
provider ^4.0.5+1 4.1.2
Transitive dependencies
collection 1.14.12
meta 1.1.8
nested 0.0.4
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test