flutter_breadcrumb_menu 1.0.0 copy "flutter_breadcrumb_menu: ^1.0.0" to clipboard
flutter_breadcrumb_menu: ^1.0.0 copied to clipboard

Breadcrumb menu for flutter app, use this plugin to show a breadcrumb menu.

example/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_breadcrumb_menu/flutter_breadcrumb_menu.dart';

import 'cold_stone.dart';
import 'dev.dart';
import 'flutter_dev.dart';
import 'front_end.dart';

void main() => runApp(MyApp());

List<Bread> breads = [
  Bread(label: "冷石科技有限公司 ", route: ColdStone.routeName),
  Bread(label: "研发部", route: Dev.routeName),
  Bread(label: "大前端组", route: FrontEnd.routeName),
  Bread(label: "Flutter 开发", route: FlutterDev.routeName),
];

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Breadcrumb App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Breadcrumb Demo'),
        ),
        body: Center(
          child: Breadcrumb(breads: breads),
        ),
      ),
      routes: {
        ColdStone.routeName: (_) => ColdStone(),
        Dev.routeName: (_) => Dev(),
        FrontEnd.routeName: (_) => FrontEnd(),
        FlutterDev.routeName: (_) => FlutterDev(),
      },
    );
  }
}
3
likes
40
pub points
0%
popularity

Publisher

verified publishercoldstone.fun

Breadcrumb menu for flutter app, use this plugin to show a breadcrumb menu.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_breadcrumb_menu