new change to use intaleq_map sdk 04-16-4
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import '../controllers/profile_controller.dart';
|
||||
|
||||
class ProfileBinding extends Bindings {
|
||||
@override
|
||||
void dependencies() {
|
||||
Get.lazyPut<ProfileController>(
|
||||
() => ProfileController(),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class ProfileController extends GetxController {}
|
||||
@@ -0,0 +1,51 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import '../../../routes/app_pages.dart';
|
||||
import '../controllers/profile_controller.dart';
|
||||
|
||||
class ProfileView extends GetView<ProfileController> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.amber,
|
||||
body: Center(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(
|
||||
'ProfileView is working',
|
||||
style: TextStyle(fontSize: 20),
|
||||
),
|
||||
Hero(
|
||||
tag: 'heroLogo',
|
||||
child: const FlutterLogo(),
|
||||
),
|
||||
MaterialButton(
|
||||
child: Text('Show a test dialog'),
|
||||
onPressed: () {
|
||||
//shows a dialog
|
||||
Get.defaultDialog(
|
||||
title: 'Test Dialog !!',
|
||||
barrierDismissible: true,
|
||||
);
|
||||
},
|
||||
),
|
||||
MaterialButton(
|
||||
child: Text('Show a test dialog in Home router outlet'),
|
||||
onPressed: () {
|
||||
//shows a dialog
|
||||
|
||||
Get.defaultDialog(
|
||||
title: 'Test Dialog In Home Outlet !!',
|
||||
barrierDismissible: true,
|
||||
navigatorKey: Get.nestedKey(Routes.HOME),
|
||||
);
|
||||
},
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user