Files
syncrow-app/lib/features/devices/view/widgets/ACs/ac_interface_controls.dart
Mohammad Salameh 481fe1c0f3 replaced Gap Class with the appropriate SizedBox
removed the Gap dependency
2024-03-02 15:52:28 +03:00

58 lines
1.6 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:syncrow_app/features/devices/model/ac_model.dart';
import 'package:syncrow_app/features/devices/view/widgets/ACs/ac_mode_control_unit.dart';
import 'package:syncrow_app/features/shared_widgets/default_container.dart';
import '../../../../../generated/assets.dart';
class AcInterfaceControls extends StatelessWidget {
const AcInterfaceControls({
super.key,
required this.acModel,
});
final ACModel acModel;
@override
Widget build(BuildContext context) {
return Expanded(
flex: 3,
child: Column(
children: [
const SizedBox(height: 10),
ACModeControlUnit(model: acModel),
const SizedBox(height: 10),
Row(
children: [
Expanded(
child: InkWell(
onTap: () {},
child: DefaultContainer(
height: 55,
child: Center(
child: SvgPicture.asset(Assets.iconsAutomatedClock),
),
),
),
),
const SizedBox(width: 10),
Expanded(
child: InkWell(
onTap: () {},
child: DefaultContainer(
height: 55,
child: Center(
child: SvgPicture.asset(Assets.iconsLock),
),
),
),
),
],
)
],
),
);
}
}