123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import 'dart:convert';
- import 'package:fis_jsonrpc/rpc.dart';
- 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/check/maternal_health_management/controller.dart';
- import 'package:vitalapp/pages/form/form_view.dart';
- ///糖尿病处方
- class BloodSugarDisorder extends StatefulWidget {
- @override
- State<StatefulWidget> createState() {
- return BloodSugarDisorderState();
- }
- }
- class BloodSugarDisorderState extends State<BloodSugarDisorder> {
- String? _template;
- @override
- void initState() {
- Get.find<ITemplateManager>()
- .getTemplateByKey("DiabetesPrescription")
- .then((value) {
- setState(() {
- _template = value;
- });
- });
- super.initState();
- }
- @override
- Widget build(BuildContext context) {
- return _template == null
- ? Center(
- child: CircularProgressIndicator(),
- )
- : FormView(_template!);
- }
- }
|