CPラベルが1文字しか出ない、起動が遅い

This commit is contained in:
2024-04-14 20:16:13 +09:00
parent f6b2a6c7d4
commit 4ef42216f8
18 changed files with 1520 additions and 372 deletions

View File

@ -10,7 +10,7 @@ class GpsSignalStrengthIndicator extends StatelessWidget {
// コンストラクタにminimizedパラメータを追加し、デフォルト値をfalseに設定
GpsSignalStrengthIndicator({
Key? key,
super.key,
required this.locationController,
this.minimized = false, // ここでデフォルト値を指定
});
@ -19,8 +19,8 @@ class GpsSignalStrengthIndicator extends StatelessWidget {
Widget build(BuildContext context) {
// final LocationController locationController = Get.find<LocationController>();
return Obx(() {
String signalStrength = locationController.latestSignalStrength;
print("signalStrength=${signalStrength}");
String signalStrength = locationController.latestSignalStrength.value;
debugPrint("GpsSignalStrengthIndicator : signalStrength=${signalStrength}");
IconData iconData;
Color backgroundColor;
String text;