mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 18:16:21 +00:00
48 lines
1.6 KiB
Dart
48 lines
1.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
import 'package:syncrow_app/features/scene/widgets/scene_list_tile.dart';
|
|
import 'package:syncrow_app/features/shared_widgets/default_container.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/utils/context_extension.dart';
|
|
import 'package:syncrow_app/utils/resource_manager/color_manager.dart';
|
|
import 'package:syncrow_app/utils/resource_manager/strings_manager.dart';
|
|
|
|
class IFDefaultContainer extends StatelessWidget {
|
|
const IFDefaultContainer({
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return DefaultContainer(
|
|
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 2),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
SceneListTile(
|
|
leadingWidget: BodyLarge(
|
|
text: 'IF',
|
|
style: context.bodyLarge.copyWith(
|
|
fontWeight: FontWeight.bold,
|
|
color: ColorsManager.primaryTextColor,
|
|
),
|
|
),
|
|
trailingWidget: SvgPicture.asset(Assets.addIcon),
|
|
padding: EdgeInsets.zero,
|
|
),
|
|
const LightDivider(),
|
|
const SceneListTile(
|
|
assetPath: Assets.handClickIcon,
|
|
titleString: StringsManager.tapToRun,
|
|
padding: EdgeInsets.zero,
|
|
)
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
|