v1.1.1slidable_bar
一個用於顯示側邊欄並隱藏它以及自訂點擊行為的Flutter套件。
48喜歡 61近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個用於帶動畫顯示/隱藏側邊欄的 Flutter 套件
以下為英文專案原文快照,最新內容請造訪 GitHub。
A Flutter side bar slider can be with any widget you want
SlidableBar can have four positions: top, bottom, right and left.clicker, you can change the clicker widget with what you want.Drawer, but with new way.SlidableBar should have specific width and height, it works fine with scaffold's body.SlidableBar doesn't create it's own context, so it will appear under floating action button if you add one. final SlidableBarController controller = SlidableBarController(initialStatus: true);
SlidableBar(
size: 50, // this will be bar's height in case Side is bottom or top and width in case Side is left or right
children: <Widget>[], // here is the widgets inside the bar
child: Container(), // here is your widget that will be under the bar
// optional
frontColor: Colors.green, // the color of the cycle inside the default clicker
slidableController: controller, // the contoller to change and listen to the bar status
barRadius: const BorderRadius.circular(10.0), // the contoller to change and listen to the bar status
side: Side.bottom, // Side.right is the default
clickerPosition: 1.0, // the position of the clicker, 0.0 is the default
clickerSize: 60, // the sizer of the default clicker, 55 is the default
onChange: (int index){
print(index); // this will print the index of the widget you clicked inside the bar
},
duration: Duration(milliseconds: 500), // the duration of the animation, (300 mil) is the default
isOpenFirst: true, // the initial state of the bar, false is default
backgroundColor: Colors.black, // primary color is default
curve: Curves.ease, // the animation curve, linear is defualt
clicker: Icon(Icons.arrow_forward_ios), // this will build instead of the default clicker
)
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
slidable_bar: "^1.1.0"
Then run $ flutter pub get. In your library, add the following import:
import 'package:slidable_bar/slidable_bar.dart';




Mahmoud Haj Ali - GitHub
依賴清單 2 項
{"sdk":"flutter"}{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗