123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- 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 HypertrophicOsteoarthropathy extends StatefulWidget {
- @override
- State<StatefulWidget> createState() {
- return HypertrophicOsteoarthropathyState();
- }
- }
- class HypertrophicOsteoarthropathyState
- extends State<HypertrophicOsteoarthropathy> {
- String? _template;
- @override
- void initState() {
- // Get.find<ITemplateManager>()
- // .getTemplateByKey("HypertrophicOsteoarthropathyPrescription")
- // .then((value) {
- // setState(() {
- // _template = value;
- // });
- // });
- var _path = "assets/hypertrophic_osteoarthropathy_prescription.json";
- rootBundle.loadString(_path).then((value) {
- setState(() {
- _template = value;
- });
- });
- super.initState();
- }
- @override
- Widget build(BuildContext context) {
- return _template == null
- ? Center(
- child: CircularProgressIndicator(),
- )
- : FormView(_template!);
- }
- }
|