Skip to content

Instantly share code, notes, and snippets.

@Pjumpod
Created April 3, 2019 03:03
Show Gist options
  • Save Pjumpod/518461489a216f817f518d95c145966f to your computer and use it in GitHub Desktop.
Save Pjumpod/518461489a216f817f518d95c145966f to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:english_words/english_words.dart'; // New
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
final wordPair = WordPair.random(); // New
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Developer ==> pjumpod'),
),
body: Center(
//child: Text('Hello World'),
child: Text(wordPair.asPascalCase), // New
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment