如果使用相机,如何隐藏底部栏?

时间:2019-05-18 13:04:47

标签: android dart flutter flutter-layout flutter-animation

我无法在全屏模式下使用相机,并且由于得到了bowBottomNavigation而无法获取图片或访问存储的图像,使用相机时是否可以隐藏它?

        body: Stack(
          children: <Widget>[
            Container(
              child: TabBarView(
                controller: _tabController,
                children: _tabList,
              ),

            ),
            Align(
              alignment: Alignment.bottomCenter,
              child: Theme(
                  data: Theme.of(context).copyWith(canvasColor: Colors.transparent),
                  child: CurvedNavigationBar(
                    index: _currentIndex,
                    onTap: (index) {
                      setState(() {
                        _currentIndex = index;
                      });
                      _tabController.animateTo(_currentIndex);
                    },
                    items: <Widget>[
                      Icon(
                        Icons.subject,
                        size: 30,
                        color: Colors.white,
                      ),
                    ],
                    buttonBackgroundColor: Colors.red,
                    backgroundColor: Colors.white,
                    color: Colors.red,
                    height: 60,
                  ),
              ),
            ),
          ],
        ),
      ),
    );
  }

0 个答案:

没有答案