remove socket from water heater

This commit is contained in:
mohammad
2024-10-08 10:27:05 +03:00
parent 4916961d49
commit 978e77c167
6 changed files with 8 additions and 13 deletions
@@ -22,8 +22,7 @@ class WaterLeakRecordsScreen extends StatefulWidget {
}
class _WaterLeakRecordsScreenState extends State<WaterLeakRecordsScreen> {
int _selectedIndex = 0; // Track the selected tab index
int _selectedIndex = 0;
@override
Widget build(BuildContext context) {
return DefaultScaffold(
@@ -71,7 +70,7 @@ class _WaterLeakRecordsScreenState extends State<WaterLeakRecordsScreen> {
child: TabBar(
onTap: (value) {
setState(() {
_selectedIndex = value; // Update selected index
_selectedIndex = value;
});
},
indicatorColor: Colors.white,
@@ -36,7 +36,6 @@ class WaterLeakScreen extends StatelessWidget {
} else if (state is UpdateState) {
model = state.waterSensor;
}
print(model.batteryPercentage);
return state is WaterLeakLoadingState
? const Center(
child: DefaultContainer(
@@ -70,7 +69,6 @@ class WaterLeakScreen extends StatelessWidget {
children: [
Container(
decoration: BoxDecoration(
// color: Colors.white.withOpacity(0.1),
borderRadius:
BorderRadius.circular(890),
boxShadow: [
@@ -179,7 +177,6 @@ class WaterLeakScreen extends StatelessWidget {
child: FittedBox(
child: BodySmall(
text: 'Notification Settings',
// doorLockButtons.keys.elementAt(index),
textAlign: TextAlign.center,
),
),