Comments (5)
Hi @stefandevo , support of standalone FAB is quite reasonable. In fact this project is original inspired from this case. However I would I'd to make sure there are no misunderstanding. Please have check about the git bellow:
In order to make the center tab as FAB style, you can confiture the AppBar with TabStyle.fixedCircle
and provide the TabItem
with a FAB as icon;
ConvexAppBar(
style: TabStyle.fixedCircle,
items: [
TabItem<IconData>(icon: Icons.home, title: 'Home'),
TabItem<IconData>(icon: Icons.map, title: "Discovery"),
TabItem<Widget>(
icon: FloatingActionButton(
backgroundColor: Colors.purple,
child: Icon(Icons.add, color: Colors.yellowAccent, size: 45,),
onPressed: () {
debugPrint('click fab');
},), title: ''),
TabItem<IconData>(icon: Icons.message, title: 'Message'),
TabItem<IconData>(icon: Icons.people, title: 'Profile'),
],
// other config ...
)
Hope this can satisfy your situation 😎
from convex_bottom_bar.
Okay! Clear.
I added:
TabItem<Widget>(
icon: Container(
child: Icon(
Icons.add,
color: Theme.of(context).bottomAppBarColor,
size: 45,
),
decoration: BoxDecoration(
color: Theme.of(context).primaryColor,
shape: BoxShape.circle,
),
),
title: ''),
from convex_bottom_bar.
Wow! Exactly what I wanted. Was not aware of possibility to add a Widget instead of IconData.
Thx!
from convex_bottom_bar.
One issue maybe - is it possible to de-activate that last tab-icon. Let me explain, when I tap on the FAB I would like to have NO active tab-icons (so all in inactive state colored). How can this be done?
from convex_bottom_bar.
Short answer: Yes, you can.
In this case do not use the provided FAB, you may need to custom a new one. Since the FAB require a press callback which will override the TAB event.
from convex_bottom_bar.
Related Issues (20)
- Another exception was thrown: DefaultTabController.of() HOT 1
- how to change the circle radius and add text below circle in rectcircle when active
- overall it gives good responce , but it lacks basic changes HOT 1
- Unable to remove the DEBUG label HOT 1
- DefaultTabController Error after Flutter 3.7.0 upgrade HOT 4
- Error building after adding import HOT 4
- Error: Member not found: 'DefaultTabController.maybeOf'. HOT 2
- Does anyone have problem with impeller-enabled on iOS HOT 1
- Error: Member not found: 'DefaultTabController.maybeOf'. Issue HOT 4
- WEB can't be built HOT 2
- Unable to run example code HOT 1
- Error: Member not found: 'DefaultTabController.maybeOf'. return widget.controller ?? DefaultTabController.maybeOf(context); HOT 1
- How to change text styte depends on selected tab?
- ConvexAppBar - elevation, does not work HOT 7
- Selected option occludes snack bar messages HOT 3
- Question: How to not change selected index when another item is pressed?
- Cannot change the currentIndex using Global Key HOT 1
- How can I add IconButton to TabItem HOT 1
- How can I refresh a page during page transitions?
- More customization needed (Circle shadow, switch animation) 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 convex_bottom_bar.