following_page.dart 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import 'package:flutter/material.dart';
  2. import 'package:auto_route/auto_route.dart';
  3. import 'package:flutter/rendering.dart';
  4. import 'package:flutter_hooks/flutter_hooks.dart';
  5. import 'package:hooks_riverpod/hooks_riverpod.dart';
  6. import 'package:router/ext/auto_router_extensions.dart';
  7. import 'package:shared/utils/color_utils.dart';
  8. import 'package:shared/utils/log_utils.dart';
  9. import 'package:widgets/my_load_image.dart';
  10. import 'package:widgets/ext/ex_widget.dart';
  11. import 'package:widgets/my_text_view.dart';
  12. import 'package:widgets/my_appbar.dart';
  13. import 'package:cs_resources/theme/app_colors_theme.dart';
  14. import 'package:widgets/widget_export.dart';
  15. import '../../../router/page/community_page_router.dart';
  16. import 'following_vm.dart';
  17. @RoutePage()
  18. class FollowingPage extends HookConsumerWidget {
  19. const FollowingPage({Key? key}) : super(key: key);
  20. //启动当前页面
  21. static void startInstance({BuildContext? context}) {
  22. if (context != null) {
  23. context.router.push(const FollowingPageRoute());
  24. } else {
  25. appRouter.push(const FollowingPageRoute());
  26. }
  27. }
  28. @override
  29. Widget build(BuildContext context, WidgetRef ref) {
  30. return const Scaffold(
  31. // appBar: MyAppBar.appBar(
  32. // context,
  33. // "following",
  34. // backgroundColor: context.appColors.whiteBG,
  35. // ),
  36. // backgroundColor: ColorUtils.string2Color("#F2F3F6"),
  37. body: Column(
  38. children: [
  39. Text("newspage-following"),
  40. ],
  41. )
  42. );
  43. }
  44. }