1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import 'package:flutter/material.dart';
- import 'package:flutter/services.dart';
- import 'package:get/get.dart';
- import 'package:vitalapp/managers/interfaces/template.dart';
- import 'package:vitalapp/pages/form/form_view.dart';
- ///滴虫阴道炎患者健康教育处方
- class TrichomoniasisVaginitis extends StatefulWidget {
- @override
- State<StatefulWidget> createState() {
- return TrichomoniasisVaginitisState();
- }
- }
- class TrichomoniasisVaginitisState extends State<TrichomoniasisVaginitis> {
- String? _template;
- @override
- void initState() {
- // Get.find<ITemplateManager>()
- // .getTemplateByKey("PrescriptionForTrichomoniasisVaginitis")
- // .then((value) {
- // setState(() {
- // _template = value;
- // });
- // });
- var _path = "assets/prescription_for_trichomoniasis_vaginitis.json";
- rootBundle.loadString(_path).then((value) {
- setState(() {
- _template = value;
- });
- });
- super.initState();
- }
- @override
- Widget build(BuildContext context) {
- return _template == null
- ? Center(
- child: CircularProgressIndicator(),
- )
- : FormView(_template!);
- }
- }
|