Skip to content

Instantly share code, notes, and snippets.

@r-yeates
Last active September 1, 2022 03:44
Show Gist options
  • Save r-yeates/da171778f53e6f8b59c08e085f2ecb3b to your computer and use it in GitHub Desktop.
Save r-yeates/da171778f53e6f8b59c08e085f2ecb3b to your computer and use it in GitHub Desktop.
Junk Free main.dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const MaterialApp(
title: 'flutter',
home: MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key}) : super(key: key);
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('QRScanner'),
),
body: Container(),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment