mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00

AC Cubit Add New Devices Cubit Arch will be used Devices Cubit (for devices categories, and devices page) { AC cubit, Lights cubit. ... } Replaced AssetsManager with Assets Class (auto generated)
40 lines
963 B
Dart
40 lines
963 B
Dart
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/generated/assets.dart';
|
|
|
|
class NoDevicesView extends StatelessWidget {
|
|
const NoDevicesView({
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Image.asset(
|
|
Assets.imagesBoxEmpty,
|
|
opacity: const AlwaysStoppedAnimation(0.5),
|
|
scale: 1,
|
|
width: 140,
|
|
),
|
|
const Gap(15),
|
|
const Text(
|
|
'No Devices',
|
|
style: TextStyle(
|
|
color: Colors.grey,
|
|
fontSize: 18,
|
|
),
|
|
),
|
|
const Gap(15),
|
|
const DefaultTextButton(
|
|
text: 'Add Device',
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|