v0.3.1
flutter_sidebar
一個容易設定的側邊欄小工具,適用於您的 Flutter 移動/網頁應用。
21喜歡 58近 30 天下載40Pub 分數
平台暫無資料
一個容易設定的側邊欄組件,適用於您的 Flutter 移動/網頁應用
以下為英文專案原文快照,最新內容請造訪 GitHub。
An easy to configure sidebar widget for your flutter mobile/web apps
See also: scaffold_responsive
import 'package:flutter_sidebar/flutter_sidebar.dart';
Simple Sidebar with few sidebar items:
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Flutter Sidebar')),
drawer: Sidebar.fromJson(
tabs: [
{
'title': 'Chapter A',
'children': [
{'title': 'Chapter A1'},
{'title': 'Chapter A2'},
],
},
{
'title': 'Chapter B',
'children': [
{'title': 'Chapter B1'},
{
'title': 'Chapter B2',
'children': [
{'title': 'Chapter B2a'},
{'title': 'Chapter B2b'},
],
},
],
},
{'title': 'Chapter C'},
],
),
);
}
}
依賴清單 2 項
{"sdk":"flutter"}{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗