WT 1.1.17 FAQ,
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:syncfusion_flutter_gauges/gauges.dart';
|
||||
import 'app_bar.dart';
|
||||
import 'package:keyboard_actions/keyboard_actions.dart';
|
||||
|
||||
@@ -136,7 +137,80 @@ class _BMIState extends State<BMI> with Trans {
|
||||
],
|
||||
),
|
||||
Divider(color: Colors.transparent),
|
||||
Stack(alignment: Alignment.center, children: [
|
||||
SfRadialGauge(
|
||||
enableLoadingAnimation: true,
|
||||
animationDuration: 2500,
|
||||
axes: <RadialAxis>[
|
||||
RadialAxis(
|
||||
axisLabelStyle: GaugeTextStyle(fontWeight: FontWeight.w500, fontSize: 12, color: Colors.white),
|
||||
showLabels: true,
|
||||
showAxisLine: true,
|
||||
showTicks: true,
|
||||
ticksPosition: ElementsPosition.outside,
|
||||
labelsPosition: ElementsPosition.outside,
|
||||
ranges: <GaugeRange>[
|
||||
GaugeRange(
|
||||
label: '<18,5',
|
||||
labelStyle: GaugeTextStyle(fontSize: 20, color: Colors.white, fontWeight: FontWeight.bold),
|
||||
startValue: 15,
|
||||
endValue: 18.5,
|
||||
sizeUnit: GaugeSizeUnit.factor,
|
||||
startWidth: 0.45,
|
||||
endWidth: 0.45,
|
||||
color: Colors.blue),
|
||||
GaugeRange(
|
||||
label: '18,5 - 25',
|
||||
labelStyle: GaugeTextStyle(fontSize: 20, color: Colors.white, fontWeight: FontWeight.bold),
|
||||
startValue: 18.5,
|
||||
endValue: 25,
|
||||
sizeUnit: GaugeSizeUnit.factor,
|
||||
startWidth: 0.45,
|
||||
endWidth: 0.45,
|
||||
color: Colors.green),
|
||||
GaugeRange(
|
||||
label: '25-30',
|
||||
labelStyle: GaugeTextStyle(fontSize: 20, color: Colors.white, fontWeight: FontWeight.bold),
|
||||
startValue: 25,
|
||||
endValue: 30,
|
||||
sizeUnit: GaugeSizeUnit.factor,
|
||||
startWidth: 0.45,
|
||||
endWidth: 0.45,
|
||||
color: Colors.yellow),
|
||||
GaugeRange(
|
||||
label: '30-35',
|
||||
labelStyle: GaugeTextStyle(fontSize: 20, color: Colors.white, fontWeight: FontWeight.bold),
|
||||
startValue: 30,
|
||||
endValue: 35,
|
||||
sizeUnit: GaugeSizeUnit.factor,
|
||||
startWidth: 0.45,
|
||||
endWidth: 0.45,
|
||||
color: Colors.orange),
|
||||
GaugeRange(
|
||||
label: '35<',
|
||||
labelStyle: GaugeTextStyle(fontSize: 20, color: Colors.white, fontWeight: FontWeight.bold),
|
||||
startValue: 35,
|
||||
endValue: 40,
|
||||
sizeUnit: GaugeSizeUnit.factor,
|
||||
startWidth: 0.45,
|
||||
endWidth: 0.45,
|
||||
color: Colors.red[700])
|
||||
],
|
||||
minimum: 15,
|
||||
maximum: 40,
|
||||
pointers: [
|
||||
NeedlePointer(
|
||||
needleColor: Colors.grey,
|
||||
value: widget.exerciseBloc.bmi,
|
||||
enableAnimation: true,
|
||||
knobStyle:
|
||||
KnobStyle(color: Colors.white, borderColor: Color(0xFFDADADA), knobRadius: 0.06, borderWidth: 0.04),
|
||||
)
|
||||
],
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
/* Stack(alignment: Alignment.center, children: [
|
||||
Container(
|
||||
padding: EdgeInsets.only(left: 30, right: 30),
|
||||
child: Image.asset(
|
||||
@@ -147,7 +221,7 @@ class _BMIState extends State<BMI> with Trans {
|
||||
top: widget.exerciseBloc.bmiTop,
|
||||
left: widget.exerciseBloc.bmiLeft,
|
||||
child:
|
||||
Container() /* RotationAnimatedWidget.tween(
|
||||
Container() RotationAnimatedWidget.tween(
|
||||
enabled: true,
|
||||
duration: const Duration(milliseconds: 1000),
|
||||
rotationDisabled: Rotation.deg(),
|
||||
@@ -155,9 +229,9 @@ class _BMIState extends State<BMI> with Trans {
|
||||
child: Image.asset(
|
||||
"asset/image/BMI_mutato.png",
|
||||
width: 65,
|
||||
)) */
|
||||
))
|
||||
)
|
||||
]),
|
||||
]), */
|
||||
Divider(color: Colors.transparent),
|
||||
Container(
|
||||
padding: EdgeInsets.only(left: 65, right: 65),
|
||||
|
||||
@@ -2,23 +2,34 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
// ignore: must_be_immutable
|
||||
class TreeviewParentWidget extends StatelessWidget {
|
||||
final String text;
|
||||
final Color backgroundColor;
|
||||
final Color? color;
|
||||
final double? fontSize;
|
||||
Icon? icon;
|
||||
//final DateTime lastModified;
|
||||
|
||||
TreeviewParentWidget({required this.text, this.backgroundColor = Colors.white38, this.color});
|
||||
TreeviewParentWidget({
|
||||
required this.text,
|
||||
this.backgroundColor = Colors.white38,
|
||||
this.color,
|
||||
this.fontSize = 24,
|
||||
this.icon,
|
||||
}) {
|
||||
if (icon == null) {
|
||||
icon = Icon(Icons.person);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Widget parentWidget = Text(
|
||||
this.text,
|
||||
style: GoogleFonts.archivoBlack(fontSize: 24, color: color ?? Colors.blue[800]!, backgroundColor: Colors.transparent),
|
||||
style: GoogleFonts.archivoBlack(fontSize: fontSize, color: color ?? Colors.blue[800]!, backgroundColor: Colors.transparent),
|
||||
);
|
||||
|
||||
Icon icon = Icon(Icons.person);
|
||||
|
||||
return Card(
|
||||
color: backgroundColor,
|
||||
shadowColor: Colors.black54,
|
||||
|
||||
Reference in New Issue
Block a user