Skip to content

Instantly share code, notes, and snippets.

@snova301
Created June 2, 2019 07:25
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 snova301/1ad4f307281878f890b7bec0ce4245af to your computer and use it in GitHub Desktop.
Save snova301/1ad4f307281878f890b7bec0ce4245af to your computer and use it in GitHub Desktop.
flutter get started, part1 step2
import 'package:flutter/material.dart';
import 'package:english_words/english_words.dart'; // 追加
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
final wordPair = WordPair.random();
return MaterialApp(
title: 'Welcome to Flutter',
home: Scaffold(
appBar: AppBar(
title: Text('Welcome to Flutter'),
),
body: Center(
child: Text(wordPair.asPascalCase), // 変更
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment