mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 10:54:54 +00:00
code refactoring
This commit is contained in:
@ -0,0 +1,44 @@
|
||||
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(),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user