1234567891011121314151617181920212223242526272829303132333435363738 |
- 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 PsychiatricPrescription extends StatefulWidget {
- @override
- State<StatefulWidget> createState() {
- return PsychiatricPrescriptionState();
- }
- }
- class PsychiatricPrescriptionState extends State<PsychiatricPrescription> {
- String? _template;
- @override
- void initState() {
- Get.find<ITemplateManager>()
- .getTemplateByKey("PsychiatricPrescription")
- .then((value) {
- setState(() {
- _template = value;
- });
- });
- super.initState();
- }
- @override
- Widget build(BuildContext context) {
- return _template == null
- ? Center(
- child: CircularProgressIndicator(),
- )
- : FormView(_template!);
- }
- }
|