another commit
This commit is contained in:
39
lib/pages/before_login/index.dart
Normal file
39
lib/pages/before_login/index.dart
Normal file
@ -0,0 +1,39 @@
|
||||
import 'package:double_back_to_close_app/double_back_to_close_app.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:kurir/controller/before_login/loginController.dart';
|
||||
// import 'package:kurir/controller/before_login/indexController.dart';
|
||||
|
||||
import '../../widgets/boxBackgroundDecoration.dart';
|
||||
|
||||
// class IndexPage extends GetView<IndexController> {
|
||||
class IndexPage extends GetView<LoginController> {
|
||||
const IndexPage({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Hompage'),
|
||||
automaticallyImplyLeading: false,
|
||||
),
|
||||
body: const DoubleBackToCloseApp(
|
||||
child: BoxBackgroundDecoration(
|
||||
child: Center(
|
||||
child: Text(
|
||||
'Hompage',
|
||||
style: TextStyle(
|
||||
fontSize: 30,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
snackBar: SnackBar(
|
||||
content: Text('Tekan tombol kembali lagi untuk keluar'),
|
||||
),
|
||||
),
|
||||
bottomNavigationBar: Obx(() => controller.bottomNavigationBar()),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user