three_page.dart 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import 'package:flutter/material.dart';
  2. // import 'package:luojigou_thinking_core/src/view/';
  3. import 'package:luojigou_thinking_core/src/view/bulletf_rame/abstract/i_bulletf_rame_factory.dart';
  4. import 'package:luojigou_thinking_core/src/view/bulletf_rame/policy_support/policy_support_bulletf_rame_factory.dart';
  5. import 'package:luojigou_thinking_core/src/view/bulletf_rame/customer/customer_verify_bulletf_rame_factory.dart';
  6. import 'package:luojigou_thinking_core/src/view/bulletf_rame/verify/verify_bulletf_rame_factory.dart';
  7. import 'package:luojigou_thinking_core/src/data/data_management.dart';
  8. import 'package:luojigou_thinking_core/src/view/bulletf_rame/report_generation/report_generation_bulletf_rame_factory.dart';
  9. import 'package:luojigou_thinking_core/src/view/bulletf_rame/album_selection/album_selection_bulletf_rame_factory.dart';
  10. import 'package:luojigou_thinking_core/src/view/bulletf_rame/ability_selection/ability_selection_bulletf_rame_factory.dart';
  11. class ThreePage extends StatefulWidget {
  12. @override
  13. ThreePageState createState() => new ThreePageState();
  14. }
  15. class ThreePageState extends State<ThreePage> {
  16. late IBulletfRameFactory _iBulletfRameFactory;
  17. @override
  18. void initState() {
  19. // TODO: implement initState
  20. super.initState();
  21. // _iBulletfRameFactory = PolicySupportBulletfRameFactory();
  22. // _iBulletfRameFactory = CustomerBulletfRameFactory();
  23. // _iBulletfRameFactory = ReportGenerationBulletfRameFactory();
  24. // _iBulletfRameFactory = AlbumSelectionBulletfRameFactory();
  25. _iBulletfRameFactory = AbilitySelectionBulletfRameFactory();
  26. // _iBulletfRameFactory = VerifyBulletfRameFactory(VerifyType.Commit);
  27. }
  28. @override
  29. Widget build(BuildContext context) {
  30. return Scaffold(
  31. appBar: AppBar(
  32. title: Text('2'),
  33. ),
  34. body: Container(
  35. color: Colors.white,
  36. child: Center(
  37. child: ElevatedButton(
  38. child: Text("点击"),
  39. onPressed: () {
  40. Navigator.push(
  41. context,
  42. ActivateRouter(
  43. _iBulletfRameFactory.getBulletfRame().createBulletfRame(),
  44. _iBulletfRameFactory
  45. .getBulletfRameColor()
  46. .getBulletfRameBarrierColor(),
  47. ));
  48. },
  49. ),
  50. ),
  51. ),
  52. );
  53. }
  54. }