GithubHelp home page GithubHelp logo

Comments (2)

westdabestdb avatar westdabestdb commented on August 28, 2024

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.

lucasjinreal avatar lucasjinreal commented on August 28, 2024

@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)

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.