restructured the application

added .end files
switched to BLoC state-management
removed unnecessary helpers
initialized Scenes Page
This commit is contained in:
Mohammad Salameh
2024-02-15 14:00:09 +03:00
parent 16f47f744c
commit 1d18210158
79 changed files with 554 additions and 723 deletions
@@ -0,0 +1,40 @@
import 'package:flutter/material.dart';
import 'package:gap/gap.dart';
import 'package:syncrow_app/features/shared_widgets/default_text_button.dart';
import 'package:syncrow_app/utils/resource_manager/assets_manager.dart';
class SceneViewNoScenes extends StatelessWidget {
const SceneViewNoScenes({
super.key,
});
@override
Widget build(BuildContext context) {
return Center(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 40),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.asset(
ImageManager.automation,
scale: 1,
opacity: const AlwaysStoppedAnimation(.5),
width: 140,
),
const Gap(15),
const Text(
'Home automation saves your time and effort by automating routine tasks.',
textAlign: TextAlign.center,
style: TextStyle(color: Colors.grey),
),
const Gap(20),
const DefaultTextButton(
text: 'Create Scene',
)
],
),
),
);
}
}