想在每個螢屏的底部顯示迷你音樂播放器,但它必須是底頁,這樣我就可以在全屏中為影像和控制器的位置設定影片。
這是我的底部條碼
return Scaffold(
body: tabs[currentTabIndex],
backgroundColor: ColorConstants.kBackGround,
bottomNavigationBar: Column(
mainAxisSize: MainAxisSize.min,
children: [
Container(
margin: const EdgeInsets.all(10),
width: 100.w,
height: 60,
alignment: Alignment.center,
color: Colors.black38,
child: Text(
"Mini Player",
style: Theme.of(context).textTheme.headline3,
),
),
BottomNavigationBar(
currentIndex: currentTabIndex,
elevation: 0,
onTap: (currentIndex) => setState(() {
currentTabIndex = currentIndex;
}),
selectedLabelStyle: const TextStyle(color: Colors.white),
selectedItemColor: ColorConstants.kDarkFontColor,
backgroundColor: ColorConstants.kBackGround,
showSelectedLabels: false,
showUnselectedLabels: false,
items: const [
BottomNavigationBarItem(icon: Icon(Icons.home), label: ""),
BottomNavigationBarItem(icon: Icon(Icons.search), label: ""),
BottomNavigationBarItem(icon: Icon(Icons.library_books), label: "")
],
)
],
),
);

uj5u.com熱心網友回復:
我對他進行了一些研究,發現了這個可以用來解決這個問題的顫振包。如果有人知道如何在不使用包的情況下實作這一點,那么請提出您的建議。
迷你播放器:Flutter 包
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/481866.html
上一篇:如何將游標影片到下一個新行并在js/css中生成另一個新的字符行?
下一篇:在樣式化組件中使用影片
