52 lines
1.6 KiB
Dart
52 lines
1.6 KiB
Dart
import 'package:birzha/components/button.dart';
|
|
import 'package:birzha/core/adaptix/adaptix.dart';
|
|
import 'package:birzha/screens/auth/login.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
import 'package:birzha/models/settings/settingsModel.dart';
|
|
|
|
import '../core/manager/manager.dart';
|
|
|
|
class UnAuthenticated extends StatefulWidget {
|
|
const UnAuthenticated({Key? key}) : super(key: key);
|
|
@override
|
|
_UnAuthenticatedState createState() => _UnAuthenticatedState();
|
|
}
|
|
|
|
class _UnAuthenticatedState extends State<UnAuthenticated> {
|
|
TaskStatus status = TaskStatus.None;
|
|
final GlobalKey<FormState> formKey = GlobalKey<FormState>();
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Center(
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
Container(
|
|
alignment: Alignment.center,
|
|
width: 50.orientationWidth,
|
|
height: 200.adaptedPx(),
|
|
child: SvgPicture.asset('assets/images/unauth.svg'),
|
|
),
|
|
Text(
|
|
'needToEnter'.translation,
|
|
style: TextStyle(fontSize: 17.adaptedPx(), fontWeight: FontWeight.w300, color: Theme.of(context).accentColor),
|
|
),
|
|
SizedBox(
|
|
height: 20.adaptedPx(),
|
|
),
|
|
MyButton(
|
|
text: 'login'.translation,
|
|
inProgress: false,
|
|
onTap: () {
|
|
Navigator.of(context, rootNavigator: true).push(MaterialPageRoute(builder: (_) => LoginScreen()));
|
|
},
|
|
height: 40.adaptedPx(),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|