35 lines
969 B
Dart
35 lines
969 B
Dart
import 'package:baseproject/core/components/constants_widget.dart';
|
|
import 'package:baseproject/core/language/app_localizations.dart';
|
|
import 'package:baseproject/features/route/route_goto.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class Home extends StatefulWidget {
|
|
const Home({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
State<Home> createState() => _HomeState();
|
|
}
|
|
|
|
class _HomeState extends State<Home> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
children: [
|
|
Text(AppLocalizations.of(context)!.translate("first_string")),
|
|
ConstantWidget.buildPrimaryButton(
|
|
onPressed: () {
|
|
gotoLogin(context);
|
|
},
|
|
text: 'Đăng nhập',
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|