property_ioan_page.dart 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import 'package:cs_resources/generated/assets.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:auto_route/auto_route.dart';
  4. import 'package:hooks_riverpod/hooks_riverpod.dart';
  5. import 'package:router/ext/auto_router_extensions.dart';
  6. import 'package:widgets/my_load_image.dart';
  7. import '../../../router/page/property_page_router.dart';
  8. import '../vm/property_ioan_vm.dart';
  9. @RoutePage()
  10. class PropertyIoanPage extends HookConsumerWidget {
  11. const PropertyIoanPage({Key? key}) : super(key: key);
  12. //启动当前页面
  13. static void startInstance({BuildContext? context}) {
  14. if (context != null) {
  15. context.router.push(const PropertyIoanPageRoute());
  16. } else {
  17. appRouter.push(const PropertyIoanPageRoute());
  18. }
  19. }
  20. @override
  21. Widget build(BuildContext context, WidgetRef ref) {
  22. final _vm = ref.read(propertyIoanVmProvider.notifier);
  23. return Scaffold(
  24. // appBar: AppBar(title: Text("资产")),
  25. body: Column(
  26. children: [
  27. MyAssetImage(
  28. Assets.propertyIoan,
  29. width: 100,
  30. height: 100,
  31. ),
  32. ],
  33. ),
  34. );
  35. }
  36. }