Last active
February 18, 2022 13:24
-
-
Save aryzae/a5887ca05bb5884719dfdc281a799777 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
// 以下のgistを改変して雑に改変 | |
// https://gist.github.com/kumamotone/6387fcf4437f1fc68d864e45d47e51ff | |
import 'package:flutter/cupertino.dart'; | |
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); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'クレヨンしんちゃん', | |
home: Scaffold( | |
body: Center( | |
child: Container( | |
padding: const EdgeInsets.all(16.0), | |
width: 400, | |
height: 300, | |
decoration: const BoxDecoration( | |
gradient: LinearGradient( | |
begin: Alignment.topCenter, | |
end: Alignment.bottomCenter, | |
colors: <Color>[topColor, bottomColor]), | |
), | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: [ | |
Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: [ | |
Text( | |
"かいはつとちゅう", | |
style: Theme.of(context) | |
.textTheme | |
.overline | |
?.merge(const TextStyle(color: titleColor)), | |
), | |
Text( | |
"開発途中で", | |
style: Theme.of(context) | |
.textTheme | |
.headline6 | |
?.merge(const TextStyle( | |
color: titleColor, | |
fontWeight: FontWeight.bold, | |
)), | |
), | |
], | |
), | |
Padding( | |
padding: const EdgeInsets.only(left: 32), | |
child: Text( | |
"だいたいプレビュー使わなくなるゾ", | |
textAlign: TextAlign.end, | |
style: Theme.of(context) | |
.textTheme | |
.headline6 | |
?.merge(const TextStyle( | |
color: titleColor, | |
fontWeight: FontWeight.bold, | |
)), | |
), | |
), | |
], | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
見た目
