CPラベルが1文字しか出ない、起動が遅い
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user