Created
June 27, 2021 23:18
-
-
Save abdullah017/a96086945c8514807655d1816d812253 to your computer and use it in GitHub Desktop.
main.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:examp_1/Controller/home_binding.dart'; | |
import 'package:examp_1/VIEWS/home_page.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:get/get.dart'; | |
void main() => runApp(GetMaterialApp(home: HomeViews())); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return GetMaterialApp( | |
initialRoute: "/", | |
initialBinding: HomeBinding(), | |
getPages: [ | |
GetPage(name: "/", page: () => HomeViews(), binding: HomeBinding()) | |
], | |
title: "GETX EXAMPLE 1", | |
theme: ThemeData( | |
primarySwatch: Colors.blue, | |
visualDensity: VisualDensity.adaptivePlatformDensity, | |
), | |
); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment