better_menus 0.0.1 better_menus: ^0.0.1 copied to clipboard
A package aims to bring you better menus and UI elements for your flutter app
import 'package:example/list_menu_page.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const ExampleApp());
}
class ExampleApp extends StatelessWidget {
const ExampleApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Home(),
);
}
}
class Home extends StatelessWidget {
const Home({
super.key,
});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => const ListMenuPage(),
),
);
},
child: const Text('List Menu Example'),
)
],
),
),
);
}
}