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)
36 lines
956 B
Dart
36 lines
956 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:syncrow_app/features/splash/view/widgets/user_agreement_dialog.dart';
|
|
import 'package:syncrow_app/generated/assets.dart';
|
|
import 'package:syncrow_app/navigation/routing_constants.dart';
|
|
|
|
class SplashView extends StatelessWidget {
|
|
const SplashView({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
//TODO remove this delay
|
|
Future.delayed(
|
|
const Duration(seconds: 3),
|
|
() {
|
|
Navigator.popAndPushNamed(
|
|
context,
|
|
Routes.authRoute,
|
|
);
|
|
},
|
|
);
|
|
return Scaffold(
|
|
body: Center(
|
|
child: InkWell(
|
|
//TODO check if user agreement is accepted
|
|
onTap: () {
|
|
showDialog(
|
|
context: context,
|
|
builder: (context) => const UserAgreementDialog(),
|
|
);
|
|
},
|
|
child: Image.asset(Assets.imagesBlackLogo)),
|
|
),
|
|
);
|
|
}
|
|
}
|