Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to center the icon without text? #74

Closed
PINHOf opened this issue Mar 10, 2022 · 5 comments
Closed

How to center the icon without text? #74

PINHOf opened this issue Mar 10, 2022 · 5 comments

Comments

@PINHOf
Copy link

PINHOf commented Mar 10, 2022

As you can see in the image, the text has been removed, but the icon is not centered.
image

I have set the gap to zero.

GNav(
	iconSize: 24,
	padding: EdgeInsets.symmetric(horizontal: 20, vertical: 12),
	duration: Duration(milliseconds: 400),
	gap: 0,
	tabs: [
	  GButton(
		icon: Icons.home,
		backgroundColor: Colors.white,
		iconColor: Colors.black,
		iconActiveColor: Colors.purple,
		borderRadius: BorderRadius.all(Radius.circular(30)),
	  ),
	],
	selectedIndex: selectedScreenIndex,
	onTabChange: (index) {
	  setState(() {
		selectedScreenIndex = index;
	  });
	},
),
@sooxt98
Copy link
Owner

sooxt98 commented Mar 10, 2022 via email

@PINHOf
Copy link
Author

PINHOf commented Mar 10, 2022

Oh, ok, thank you. I'm trying to achieve the goal below, can you point me in the right plugin direction? There are so many 😅

image

@sooxt98
Copy link
Owner

sooxt98 commented Mar 10, 2022 via email

@sooxt98
Copy link
Owner

sooxt98 commented Mar 10, 2022 via email

@PINHOf
Copy link
Author

PINHOf commented Mar 11, 2022

Btw have you tried downgrading the version? Should have fix it I think

On Fri, 11 Mar 2022 at 1:11 AM, Sheldon Soo @.> wrote: You could try this https://pub.dev/packages/flutter_snake_navigationbar Can’t help you much on this one On Fri, 11 Mar 2022 at 1:03 AM, PINHOf @.> wrote: > Oh, ok, thank you. I'm trying to achieve the goal below, can you point me > in the right plugin direction? There are so many 😅 > > [image: image] > https://user-images.githubusercontent.com/6898403/157716165-20016111-5679-4be2-b0db-c4f1b5423b4e.png > > — > Reply to this email directly, view it on GitHub > <#74 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/ADGCEC2RYXNJOLHQ3NMPKMTU7ITPPANCNFSM5QNGTEAA > . > You are receiving this because you commented.Message ID: > @.***> >

Worked great, downgraded to version 3x. Thanks.

@PINHOf PINHOf closed this as completed Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants