|
@@ -62,9 +62,7 @@ class _Measure3DViewSwitcherState extends State<Measure3DViewSwitcher> {
|
|
|
return FContainer(
|
|
|
width: 300,
|
|
|
padding: const EdgeInsets.all(10),
|
|
|
- child: FColumn(
|
|
|
- mainAxisSize: MainAxisSize.min,
|
|
|
- children: [ifShow3DSwitcher ? modeButton() : switcher()]),
|
|
|
+ child: FColumn(mainAxisSize: MainAxisSize.min, children: [switcher()]),
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -94,42 +92,4 @@ class _Measure3DViewSwitcherState extends State<Measure3DViewSwitcher> {
|
|
|
),
|
|
|
]);
|
|
|
}
|
|
|
-
|
|
|
- ///TODO:[Gavin] 两个按钮移进canvas右上角
|
|
|
- FWidget modeButton() {
|
|
|
- return FContainer();
|
|
|
- return FRow(
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
- mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
- children: [
|
|
|
- FElevatedButton(
|
|
|
- onPressed: () {
|
|
|
- widget.measure3DViewController.backTo3DMode();
|
|
|
- setState(() {
|
|
|
- ifShow3DSwitcher = false;
|
|
|
- enable3DView = true;
|
|
|
- });
|
|
|
- },
|
|
|
- child: FText(
|
|
|
- i18nBook.measure.carotid3DMode.t,
|
|
|
- style: const TextStyle(color: Colors.white),
|
|
|
- ),
|
|
|
- ),
|
|
|
- FElevatedButton(
|
|
|
- onPressed: () {
|
|
|
- widget.measure3DViewController.backToVidMode();
|
|
|
- playerController.resetCurrentFrame();
|
|
|
- setState(() {
|
|
|
- ifShow3DSwitcher = false;
|
|
|
- enable3DView = false;
|
|
|
- });
|
|
|
- },
|
|
|
- child: FText(
|
|
|
- i18nBook.measure.vidMode.t,
|
|
|
- style: const TextStyle(color: Colors.white),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ],
|
|
|
- );
|
|
|
- }
|
|
|
}
|