mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 09:45:22 +00:00
84 lines
2.8 KiB
Dart
84 lines
2.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:syncrow_app/features/scene/widgets/scene_list_tile.dart';
|
|
import 'package:syncrow_app/features/shared_widgets/light_divider.dart';
|
|
|
|
import 'package:syncrow_app/features/shared_widgets/text_widgets/body_large.dart';
|
|
import 'package:syncrow_app/generated/assets.dart';
|
|
import 'package:syncrow_app/navigation/routing_constants.dart';
|
|
import 'package:syncrow_app/utils/context_extension.dart';
|
|
import 'package:syncrow_app/utils/resource_manager/color_manager.dart';
|
|
|
|
class CustomBottomSheetWidget extends StatelessWidget {
|
|
const CustomBottomSheetWidget({
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SizedBox(
|
|
width: double.infinity,
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Padding(
|
|
padding: const EdgeInsets.only(top: 16, bottom: 8),
|
|
child: BodyLarge(
|
|
text: 'Add Task',
|
|
style: context.bodyLarge.copyWith(
|
|
fontWeight: FontWeight.w700,
|
|
color: ColorsManager.primaryColorWithOpacity,
|
|
),
|
|
textAlign: TextAlign.center,
|
|
),
|
|
),
|
|
SizedBox(
|
|
width: context.width * 0.7,
|
|
child: const LightDivider(),
|
|
),
|
|
SceneListTile(
|
|
assetPath: Assets.assetsIconsLight,
|
|
assetHeight: 24,
|
|
minLeadingWidth: 30,
|
|
titleString: 'Control Single Device',
|
|
padding: const EdgeInsets.symmetric(horizontal: 20),
|
|
trailingWidget: const Icon(
|
|
Icons.arrow_forward_ios_rounded,
|
|
size: 16,
|
|
color: ColorsManager.greyColor,
|
|
),
|
|
onPressed: () {
|
|
Navigator.pushNamed(context, Routes.sceneControlDevicesRoute);
|
|
},
|
|
),
|
|
SceneListTile(
|
|
assetPath: Assets.player,
|
|
titleString: 'Select Automation',
|
|
minLeadingWidth: 30,
|
|
assetHeight: 24,
|
|
padding: const EdgeInsets.symmetric(horizontal: 20),
|
|
trailingWidget: const Icon(
|
|
Icons.arrow_forward_ios_rounded,
|
|
size: 16,
|
|
color: ColorsManager.greyColor,
|
|
),
|
|
onPressed: () {},
|
|
),
|
|
SceneListTile(
|
|
assetPath: Assets.delay,
|
|
titleString: 'Delay The Action',
|
|
assetHeight: 24,
|
|
minLeadingWidth: 30,
|
|
padding: const EdgeInsets.symmetric(horizontal: 20),
|
|
trailingWidget: const Icon(
|
|
Icons.arrow_forward_ios_rounded,
|
|
size: 16,
|
|
color: ColorsManager.greyColor,
|
|
),
|
|
onPressed: () {},
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|