Skip to content

Instantly share code, notes, and snippets.

@karan-ta
Created April 27, 2020 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karan-ta/2f508a1ccb61c39af04036e672899b72 to your computer and use it in GitHub Desktop.
Save karan-ta/2f508a1ccb61c39af04036e672899b72 to your computer and use it in GitHub Desktop.
helloflutterscaffold
import 'package:flutter/material.dart';
void main() {
runApp(new HelloWorldText());
}
class HelloWorldText extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Hello World Example'),
),
body: Center(
child: Text('Hello World'),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment