v0.3.1
flutter_sidebar
Um widget de barra lateral fácil de configurar para seus aplicativos móveis/web do Flutter.
21Curtidas 43Downloads em 30 dias40Pontos Pub
Plataformas indisponíveis
Um widget de barra lateral fácil de configurar para seus aplicativos móveis/web do Flutter
{"sdk":"flutter"}{"sdk":"flutter"}Texto original em inglês. Visite o GitHub para a versão atual.
An easy to configure sidebar widget for your flutter mobile/web apps
See also: scaffold_responsive
2020-06-29-225932_1124x667_scrot
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'},
],
),
);
}
}