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