Skip to content

Instantly share code, notes, and snippets.

@xrnd
Last active July 9, 2018 07:40
Show Gist options
  • Select an option

  • Save xrnd/1dc938fe444514494a0585745b26044a to your computer and use it in GitHub Desktop.

Select an option

Save xrnd/1dc938fe444514494a0585745b26044a to your computer and use it in GitHub Desktop.
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
@override
Widget build(BuildContext context) {
return new MaterialApp(
debugShowCheckedModeBanner: false,
home: new Scaffold(
appBar: new AppBar(primary: true, title: new Text('Flutter-Start')),
body: new Container(
child: new Center(
child: new Text('Center Widget'),
),
),
theme: defaultTargetPlatform == TargetPlatform.iOS
? Themes.kIOSTheme
: Themes.kDefaultTheme,
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment