home_page.dart 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import 'package:cpt_main/modules/visitor/page/visitor_page.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:flutter/src/widgets/framework.dart';
  4. import 'package:hooks_riverpod/hooks_riverpod.dart';
  5. import 'package:auto_route/auto_route.dart';
  6. import 'package:widgets/ext/ex_widget.dart';
  7. @RoutePage()
  8. class HomePage extends HookConsumerWidget {
  9. const HomePage({super.key});
  10. @override
  11. Widget build(BuildContext context, WidgetRef ref) {
  12. return Scaffold(
  13. appBar: AppBar(title: Text("Home")),
  14. body: Center(
  15. child: Column(
  16. children: [
  17. Row(
  18. mainAxisAlignment: MainAxisAlignment.spaceAround,
  19. children: [
  20. ElevatedButton(
  21. onPressed: () {},
  22. child: Text('Payment'),
  23. ),
  24. ElevatedButton(
  25. onPressed: () {},
  26. child: Text('Rewards'),
  27. ),
  28. ElevatedButton(
  29. onPressed: () {},
  30. child: Text('Notification'),
  31. ),
  32. ],
  33. ).marginOnly(top: 10),
  34. Row(
  35. mainAxisAlignment: MainAxisAlignment.spaceAround,
  36. children: [
  37. ElevatedButton(
  38. onPressed: () {},
  39. child: Text('Facility'),
  40. ),
  41. ElevatedButton(
  42. onPressed: () {},
  43. child: Text('Form'),
  44. ),
  45. ElevatedButton(
  46. onPressed: () {},
  47. child: Text('Notice Board'),
  48. ),
  49. ],
  50. ).marginOnly(top: 10),
  51. Row(
  52. mainAxisAlignment: MainAxisAlignment.spaceAround,
  53. children: [
  54. ElevatedButton(
  55. onPressed: () {},
  56. child: Text('Property'),
  57. ),
  58. ElevatedButton(
  59. onPressed: () {},
  60. child: Text('Service'),
  61. ),
  62. ElevatedButton(
  63. onPressed: () {},
  64. child: Text('Community'),
  65. ),
  66. ],
  67. ).marginOnly(top: 10),
  68. ],
  69. ),
  70. ),
  71. );
  72. }
  73. }