Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdullah017/a96086945c8514807655d1816d812253 to your computer and use it in GitHub Desktop.
Save abdullah017/a96086945c8514807655d1816d812253 to your computer and use it in GitHub Desktop.
main.dart
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