flutter_sidebar

Last updated:

0 purchases

flutter_sidebar Image
flutter_sidebar Images
Add to Cart

Description:

flutter sidebar

flutter_sidebar #
An easy to configure sidebar widget for your flutter mobile/web apps

Usage #
import 'package:flutter_sidebar/flutter_sidebar.dart';
copied to clipboard
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'},
],
),
);
}
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.