Instantly share code, notes, and snippets.

@MarcinusX /main.dart Secret
Created Aug 24, 2018

Embed
What would you like to do?
import 'package:bmi_calculator/input_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
SystemChrome.setPreferredOrientations(
[DeviceOrientation.portraitUp, DeviceOrientation.portraitDown])
.then((_) => runApp(new MyApp()));
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'BMI Calculator',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: InputPage(),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment