mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
45 lines
1.4 KiB
Dart
45 lines
1.4 KiB
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/widgets.dart';
|
|
import 'package:syncrow_app/features/devices/model/light_model.dart';
|
|
import 'package:syncrow_app/features/shared_widgets/default_container.dart';
|
|
|
|
class LightInterface extends StatelessWidget {
|
|
const LightInterface({super.key, required this.light});
|
|
|
|
final LightModel light;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SingleChildScrollView(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
children: [
|
|
const SizedBox(height: 20),
|
|
Container(
|
|
constraints: const BoxConstraints(
|
|
maxHeight: 65,
|
|
),
|
|
margin: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
|
child: const DefaultContainer(child: SizedBox.expand()),
|
|
),
|
|
Container(
|
|
constraints: const BoxConstraints(
|
|
maxHeight: 310,
|
|
),
|
|
margin: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
|
child: const SizedBox.expand(),
|
|
),
|
|
Container(
|
|
constraints: const BoxConstraints(
|
|
maxHeight: 65,
|
|
),
|
|
margin: const EdgeInsets.symmetric(horizontal: 20, vertical: 10),
|
|
child: const SizedBox.expand(),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|