Skip to content

Instantly share code, notes, and snippets.

@hajimehoshi
Created December 7, 2018 14:17
Show Gist options
  • Save hajimehoshi/2f6167a50efb2b43f10e09f5095dc460 to your computer and use it in GitHub Desktop.
Save hajimehoshi/2f6167a50efb2b43f10e09f5095dc460 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
var x = 0;
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
x++;
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Welcome to Flutter'),
),
body: Center(
child: Text('Hello World' + x.toString()),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment