Comments (9)
just use the leading param in GButton, check out the example
google_nav_bar/example/lib/main_advance.dart
Line 100 in 30e04f0
from google_nav_bar.
thnx a lot ;)
from google_nav_bar.
Sorry i didnt understand what do you mean ?
what i want do is like this :
Image.asset('assets/images/profile.png'),
@sooxt98
from google_nav_bar.
@golnarSheikhBahaie Can you please explain @sooxt98 answer to me ?
from google_nav_bar.
@Amr1440 Just do this, you're good to go.
GButton(
// icon: LineIcons.home,
leading: Image.asset('assets/images/profile.png'),
text: 'Home',
),
Besides, you could always check back to the example provided
google_nav_bar/example/lib/main_advance.dart
Line 139 in 30e04f0
from google_nav_bar.
Icon is required even when you use leading image.
from google_nav_bar.
Icon is required even when you use leading image.
Please remove required at least so we can use custom images as Icon or support for Icons natively would be great so we can use assetIcons. Great package but can't seem to go around it.
from google_nav_bar.
from google_nav_bar.
It’s by design, firstly icon can’t be null it’s required to make all the tabbar leading size stays consistent. Leading accepts any widget, you just have to pass in dummy icon data as a default size placeholder.
…
On Tue, 24 Aug 2021 at 2:50 AM, RazaShabbir-vrc @.***> wrote: Icon is required even when you use leading image. Please remove required at least so we can use custom images as Icon or support for Icons natively would be great so we can use assetIcons. Great package but can't seem to go around it. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#58 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGCEC4DCONUN66VZZJC3KLT6KJ6BANCNFSM44ESXJTQ .
Got it, I think this resolves it. Thanks for the awesome package!
from google_nav_bar.
Related Issues (20)
- How to center the icon without text? HOT 5
- setState() called after dispose() HOT 11
- Set the height of the navigation bar
- Make the state class _GNavState public HOT 12
- how to remove elevation from the nav bar HOT 3
- how to make resize screen ? HOT 3
- Feature request : Add color/gradient for unselected tab background HOT 1
- Debug console shows this message "ensureControlAlpha: for ITYPE_NAVIGATION_BAR" when GNav does not show? HOT 1
- Change icon type; use Widget instead of IconData HOT 1
- How to stop clicking and changing status HOT 1
- How to me Floating action Button center docked with this Bottom AppBar HOT 2
- Could you add elevation for the selected tab? HOT 1
- The bar overflows on small screens and throws error HOT 3
- how to navigate between pages HOT 3
- Nothing Find For Implement for own coustom icon
- GNav
- How can I set the fixed length of the activated GButton? HOT 2
- How can i disable tabs? HOT 2
- Create Vertical nav bar using google_nav_bar
- Icon and text mis-allign HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google_nav_bar.