Code Monkey home page Code Monkey logo

stylish_bottom_bar's Introduction

Hey Fellow <Developers/>


I'm Very Happy To Know That You Just Visited My Github Profile ๐Ÿ˜‰

  • ๐Ÿ”ญ Iโ€™m currently working on my Blog, YouTube Tutorials and App Development.
  • ๐Ÿ’ฌ Ask me about Java, Dart.
while(noSuccess){
  tryAgain();
}

Connect with me:

codeSTACKr.com codeSTACKr | YouTube codeSTACKr | Twitter codeSTACKr | Instagram



Latest Blog posts


Latest YouTube Videos


Software Source Code


Statistics

MarsadMaqsood's GitHub Activity Graph
Marsad's GitHub stats GitHub Streak

stylish_bottom_bar's People

Contributors

marsadmaqsood avatar thisismonta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stylish_bottom_bar's Issues

I am getting flex constant error

Flex Constant Erorr
I have just pub get the dependencies when I added code bottom navigation bar and then run afterwards it give me error which mention in below please find.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See the error

../../../../../.pub-cache/hosted/pub.dev/stylish_bottom_bar-1.0.3/lib/src/bottom_bar.dart:421:21: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
? const Flex(
^^^^
Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

  • Where:
    Script '/Applications/development/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1151

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/Applications/development/flutter/bin/flutter'' finished with non-zero exit value 1

image

Optimize Bottom Navbar: Allow Customizable Icon-Title Spacing via Variables

Describe the bug
A clear and concise description of what the bug is.
Could you please allow to set size/space/margin between icon & title. right now in the nav bar there are too much default space between icon & title . If we can set it via variable then it would be good.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...' Inside BottomBarItem widget set the title & selected property to reproduce this senario

Expected behavior
A clear and concise description of what you expected to happen.
image

If you observe on above image space is very little. where in below rest of the images have too much space due to it some content of second tab are not properly visible.

Screenshots
If applicable, add screenshots to help explain your problem.
The problem we are currently facing is like this below:
image
image

Environment

Fill out the following details about your environment. You can remove any section that is not applicable.

  • Flutter version: 3.3.10
  • Package version: 1.0.3
  • Operating System: [e.g., iOS, Android]
  • Device: [e.g., iPhone 14 Pro Max, Pixel 6, Emulator, Physical Device]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone14]
    image

  • OS: [e.g. iOS8.1]

Additional context
Add any other context about the problem here.

Flutter 3.7 compatibility

With Flutter 3.7, this library broke.

The "Badge" class used by this library no clashes with the newly introduced Badge Widget from Material.

Error: 'Badge' is imported from both 'package:flutter/src/material/badge.dart' and 'package:stylish_bottom_bar/src/badge/badge.dart'.

Wrong sizing of tabs since 1.0.1

Since the 1.0.1 version, the tabs (I am using BottomBarItems) are too small.
image

A hot reload in Flutter fixes it until I switch Tabs again. Downgrading to 1.0.0 fixes the issue.

some change

Hi I forked this pack and improve gradient support , for icons in AnimatedBottomBar.
Can I have contributed this change ?

background color not changing

StylishBottomBar(
            option: AnimatedBarOptions(
            //iconSize: 32,
            barAnimation: BarAnimation.fade,
            iconStyle: IconStyle.Default,                   
            backgroundColor: Colors.blue,                 
          ),
          // option: BubbleBarOptions(
          //   barStyle: BubbleBarStyle.vertical,          
          //   bubbleFillStyle: BubbleFillStyle.fill,
          //   iconSize: 32,
          //   // bubbleFillStyle: BubbleFillStyle.outlined,
          //   opacity: 0.3,        
          // ),
            hasNotch: false,         
            elevation: 8.0,
            borderRadius: const BorderRadius.all(Radius.circular(50.0)),          
            currentIndex: currentPage ?? 0,        
            onTap: (index) {
            controller.jumpToPage(index);
            setState(() {
              currentPage = index;
            });
          },
            items: [
              BottomBarItem(
                icon: const Icon(Icons.home_outlined),              
                title: const Text('Home'),
                backgroundColor: Theme.of(context).primaryColor,               
              ),
              BottomBarItem(
                icon: const Icon(Icons.payments_rounded),
                title: const Text('Quick Pay'),
                backgroundColor: Theme.of(context).primaryColor,
              ),
              BottomBarItem(
                icon: const Icon(Icons.person_outlined),
                title: const Text('Profile'),
                backgroundColor: Theme.of(context).primaryColor,
              ),
              BottomBarItem(
                icon: const Icon(Icons.settings),
                title: const Text('Settings'),
                backgroundColor: Theme.of(context).primaryColor,
              ),
            ],
          ),

Background color getting green
Screenshot 2023-04-03 112948

Clicks go through

Hi
I've set up a basic bar with:

StylishBottomBar(
fabLocation: StylishBarFabLocation.center,
hasNotch: true,
backgroundColor: Colors.white70,
currentIndex: currentMainTabIndex,
onTap: (index) {
_onItemTapped(index);
},
option: AnimatedBarOptions(
iconSize: 26,
barAnimation: BarAnimation.fade,
iconStyle: IconStyle.simple,
)

That should make it a bit transparent so you see what's behind. And that's the problem, whenever I have anything with a button behind, it will interact with it. It seems to interact with everything that is behind the bar. How can I stop this from happening? I've tried AbsorbPointer and everything but it will still go through. It seems the background bar is ignored and it won't stop it.

barStyle doesn't seem to work

Using your code from the Example, I just uncommented out the following lines:

//Bubble bar specific style properties
unselectedIconColor: Colors.grey,
barStyle: BubbleBarStyle.horizotnal,
bubbleFillStyle: BubbleFillStyle.fill,

I don't get the horizontal style. I can change the animation and icon styles, but I can't get the horizontal option to work. Am I missing something?

Bottom Navbar items behave weirdly

Bottom Navbar items behave weirdly in fabLocation: StylishBarFabLocation.center their position changes every time currentIndex change

Image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.