jumping_bottom_nav_bar_flutter 0.0.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 55

jumping_bottom_nav_bar_flutter #

A new Flutter package project for bottom navigation bar. You can directly import this package in your pubspec.yaml file and just call this library in your code you get jumping bottom nav bar.

Getting Started #

Alt Text

Add plugin in your pubspec.yaml file #

Jumping Bottom Navigation Bar

My flutter Application on Play store please visit #

Send Message without saving Number

[0.0.1] - 2020-04-24 #

  • This is one type of bottom navigation bar with some animated effect. When you select another tab then icon will jump on another tab. You may change curve colour, icon color, bar colour.

[0.0.2] - 2020-04-25 #

  • Solve conflicts

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:jumping_bottom_nav_bar_flutter/jumping_bottom_nav_bar_flutter.dart';
import 'package:jumping_bottom_nav_bar_flutter/source/tab_icon.dart';

void main() => runApp(App());

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Title',
      home: BottomBarPage(),
    );
  }
}

class BottomBarPage extends StatefulWidget {
  @override
  _BottomBarPageState createState() => _BottomBarPageState();
}

class _BottomBarPageState extends State<BottomBarPage> {
  int selectedIndex = 1;

  final iconList = [
    TabIcon(
        iconData: Icons.home,
        startColor: Colors.white,
        endColor: Colors.yellow),
    TabIcon(
        iconData: Icons.healing,
        startColor: Colors.white,
        endColor: Colors.yellowAccent),
    TabIcon(
        iconData: Icons.person,
        startColor: Colors.white,
        endColor: Colors.yellowAccent),
  ];
  void onChangeTab(int index) {
    selectedIndex = index;
  }

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: iconList.length,
      child: Scaffold(
        appBar: AppBar(
          centerTitle: true,
          title: Text("Jumping Bottom Bar"),
        ),
        body: TabBarView(
          children: [
            new Container(
              child: Center(
                child: Text("FIRST TAB"),
              ),
            ),
            new Container(
              child: Center(
                child: Text("SECOND TAB"),
              ),
            ),
            new Container(
              child: Center(
                child: Text("THIRD TAB"),
              ),
            ),
          ],
        ),
        bottomNavigationBar: Jumping_Bar(
          color: Colors.blue,
          onChangeTab: onChangeTab,
          duration: Duration(seconds: 1),
          circleGradient: RadialGradient(
            colors: [
              Colors.purpleAccent.shade100,
              Colors.red.shade900,
            ],
          ),
          items: iconList,
          selectedIndex: selectedIndex,
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  jumping_bottom_nav_bar_flutter: ^0.0.2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or 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:jumping_bottom_nav_bar_flutter/jumping_bottom_nav_bar_flutter.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
45
Health:
Code health derived from static analysis. [more]
74
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
50
Overall:
Weighted score of the above. [more]
55
Learn more about scoring.

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

  • Dart: 2.8.4
  • pana: 0.13.14
  • Flutter: 1.17.5

Health issues and suggestions

Fix lib/source/tab_bar.dart. (-25.75 points)

Analysis of lib/source/tab_bar.dart failed with 1 error, 2 hints:

line 188 col 15: This requires the 'control-flow-collections' experiment to be enabled.

line 6 col 7: Name types using UpperCamelCase.

line 35 col 7: Name types using UpperCamelCase.

Format lib/jumping_bottom_nav_bar_flutter.dart.

Run flutter format to format lib/jumping_bottom_nav_bar_flutter.dart.

Format lib/source/tab_curve_painter.dart.

Run flutter format to format lib/source/tab_curve_painter.dart.

Format lib/source/tab_icon.dart.

Run flutter format to format lib/source/tab_icon.dart.

Format lib/source/tab_item.dart.

Run flutter format to format lib/source/tab_item.dart.

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.

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.

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.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8 1.2.2
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
Dev dependencies
flutter_test