Skip to content

Instantly share code, notes, and snippets.

@lesnitsky
Last active December 9, 2019 09:57
Show Gist options
  • Save lesnitsky/db82fbf7d5301d11412f448458ed16e5 to your computer and use it in GitHub Desktop.
Save lesnitsky/db82fbf7d5301d11412f448458ed16e5 to your computer and use it in GitHub Desktop.
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Haskel Rockz')),
drawer: Drawer(child: ListView(children: [
ListTile(title: Text('Does it rock?'))
])),
body: Center(child: Text('Rockz indeed'))
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment