Comments (2)
I have no idea 😶 Let me try that in next few hours and give you a proper answer. I feel like this will be a nice feature to have if developers are not able to use it in Cupertino.
from bubble_bottom_bar.
@westdabestdb Thanks and hoping for your enchancement! For reference, I am currently building cupertino tabs like this:
CupertinoTabBar(
backgroundColor: globalNavBlackColor,
border: Border(),
onTap: (i) {
switch (i) {
case 0:
globalVoicePlayer.playClickSound1();
break;
case 1:
globalVoicePlayer.playClickSound2();
break;
default:
globalVoicePlayer.playClickSound1();
break;
}
},
activeColor: globalMainChatColor,
items: const <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: Icon(
MyFlutterApp.chat_inv,
size: 24.0,
),
title: Text(
'聊天',
style: TextStyle(
fontFamily: 'JyuuGothic',
),
),
),
BottomNavigationBarItem(
// icon: Icon(CupertinoIcons.profile_circled),
icon: Icon(
MyFlutterApp.comment_inv_alt,
size: 24.0,
),
title: Text(
'72h聊',
style: TextStyle(
fontFamily: 'JyuuGothic',
),
),
),
BottomNavigationBarItem(
// icon: Icon(CupertinoIcons.profile_circled),
icon: Icon(
MyFlutterApp.favorite,
size: 24.0,
),
title: Text(
'好友',
style: TextStyle(
fontFamily: 'JyuuGothic',
),
),
),
BottomNavigationBarItem(
icon: Icon(
MyFlutterApp.camera,
size: 24.0,
),
title: Text(
'探索',
style: TextStyle(
fontFamily: 'JyuuGothic',
),
),
),
BottomNavigationBarItem(
icon: Icon(
MyFlutterApp.user_2,
size: 24.0,
),
title: Text(
'我',
style: TextStyle(
fontFamily: 'JyuuGothic',
),
),
),
],
),
tabBuilder: (BuildContext context, int index) {
assert(index >= 0 && index <= 4);
switch (index) {
case 0:
return CupertinoTabView(
builder: (BuildContext context) => TabPage1(),
defaultTitle: '$appName',
);
break;
case 1:
return CupertinoTabView(
builder: (BuildContext context) => TabPage6(),
defaultTitle: '西客',
);
break;
case 2:
return CupertinoTabView(
builder: (BuildContext context) => TabPage2(),
defaultTitle: 'Contacts',
);
break;
case 3:
return CupertinoTabView(
builder: (BuildContext context) => TabPage3(),
defaultTitle: 'Expore',
);
break;
case 4:
return CupertinoTabView(
builder: (BuildContext context) => TabPage4(),
defaultTitle: 'Me',
);
break;
}
return null;
},
),
Currently, seems can not intergrate into it.
from bubble_bottom_bar.
Related Issues (20)
- floating btn obscures HOT 3
- Error when changing tabs on One Plus 6t HOT 1
- Notch background transparent HOT 4
- The method 'withOpacity' was called on null. HOT 7
- rtl support HOT 3
- Example With Page Changes HOT 2
- Very small renderflex error during page navigation HOT 1
- [feature request] Adding padding for the items(BubbleBottomBarItem) HOT 5
- How to change border radius for BubbleBottomBarItem ?
- Pages indexes are diffrent with diffrent fab locations
- Add enabled/disabled property
- Can you pls add a function to set the max width?
- Allow Multiple FAB buttons (i.e flutter_speed_dial) HOT 3
- Null Safety HOT 3
- Overflowed Problem HOT 1
- Publish null-safety version on pub.dev HOT 10
- Add NavigationRail
- Please update to null safety HOT 1
- 'Badge' now exists in Flutter v3.7
- Please remove badge import HOT 4
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 bubble_bottom_bar.