Created
February 16, 2022 16:23
-
-
Save kumamotone/6387fcf4437f1fc68d864e45d47e51ff to your computer and use it in GitHub Desktop.
クレしんのホラー回って毎回怖い
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter/rendering.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
static const topColor = Color.fromARGB(255, 241, 131, 164); | |
static const bottomColor = Color.fromARGB(255, 243, 243, 128); | |
static const titleColor = Color.fromARGB(255, 97, 3, 95); | |
//let titleColor = Color(red: 0.38, green: 0.01, blue: 0.37) | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
theme: ThemeData(primaryColor: titleColor), | |
title: 'クレヨンしんちゃん', | |
home: Scaffold( | |
appBar: AppBar(), | |
body: Container( | |
child: Center( | |
child: SizedBox( | |
width: 400, | |
height: 300, | |
child: Container( | |
decoration: const BoxDecoration( | |
gradient: LinearGradient( | |
begin: Alignment.topCenter, | |
end: Alignment.bottomCenter, | |
colors: <Color>[topColor, bottomColor]), | |
), | |
child: Center( | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: [ | |
Text( | |
"かいはつとちゅう", | |
style: Theme.of(context).textTheme.subtitle1, | |
), | |
Text( | |
"開発途中で", | |
style: Theme.of(context).textTheme.headline4, | |
), | |
Padding( | |
padding: const EdgeInsets.only(left: 20), | |
child: Text( | |
"だいたいプレビュー使わなくなるゾ", | |
style: Theme.of(context).textTheme.bodyText1, | |
), | |
), | |
], | |
), | |
), | |
), | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment