flutter breadcrumb menu
![Test](https://github.com/xrr2016/flutter-breadcrumb-menu/workflows/Test/badge.svg?branch=master&raw=true)
![example](https://raw.githubusercontent.com/yringler/flutter-breadcrumb-menu/master/./example/example.gif)
dependencies:
flutter_breadcrumb_menu: ^0.1.2
// defined routes
MaterialApp(
routes: {
Dev.routeName: (_) => Dev(),
FrontEnd.routeName: (_) => FrontEnd(),
ColdStone.routeName: (_) => ColdStone(),
FlutterDev.routeName: (_) => FlutterDev(),
},
);
// create breads
List<Bread> breads = [
Bread(label: "冷石科技有限公司 ", route: ColdStone.routeName),
Bread(label: "研发部", route: Dev.routeName),
Bread(label: "大前端组", route: FrontEnd.routeName),
Bread(label: "Flutter 开发", route: FlutterDev.routeName),
];
// render
Breadcrumb(breads: breads)
property |
type |
default |
description |
required |
breads |
List |
null |
bread crumbs |
true |
color |
Colors |
Colors.blue |
bread color |
false |
height |
double |
40.0 |
menu height |
false |
separator |
Widget |
Icon() |
bread separator |
false |
- Fork it (https://github.com/xrr2016/flutter-breadcrumb.git)
- Create your feature branch (git checkout -b feature/foo)
- Commit your changes (git commit -am 'Add some foo')
- Push to the branch (git push origin feature/foo)
- Create a new Pull Request
MIT