Skip to content

Instantly share code, notes, and snippets.

@veetaw
Created June 24, 2019 15:00
Show Gist options
  • Save veetaw/de029103c9c22fd7af27af4f78e52844 to your computer and use it in GitHub Desktop.
Save veetaw/de029103c9c22fd7af27af4f78e52844 to your computer and use it in GitHub Desktop.
How a clean lib/main.dart should look
import 'package:flutter/material.dart';
void main() {
runApp(Application());
}
class Application extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: "Admob test",
home: Scaffold(
appBar: AppBar(
title: Text("Flutter admob test"),
),
body: Container(),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment