Created
March 7, 2019 12:19
-
-
Save angelabauer/76043b339eeee1142b8d02ee05bde15c to your computer and use it in GitHub Desktop.
This file contains 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'; | |
void main() => runApp( | |
MaterialApp( | |
home: BallPage(), | |
), | |
); | |
class BallPage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Colors.blue, | |
appBar: AppBar( | |
backgroundColor: Colors.blue.shade900, | |
title: Text('Ask Me Anything'), | |
), | |
body: Ball(), | |
); | |
} | |
} | |
class Ball extends StatefulWidget { | |
@override | |
_BallState createState() => _BallState(); | |
} | |
class _BallState extends State<Ball> { | |
@override | |
Widget build(BuildContext context) { | |
return Center( | |
child: FlatButton( | |
onPressed: () { | |
print('I got clicked'); | |
}, | |
child: Image.asset('images/ball1.png'), | |
), | |
); | |
} | |
} |
wkzmrj
commented
May 11, 2024
via email
这是来自QQ邮箱的假期自动回复邮件。您好,已收到你的邮件,我将尽快回复,谢谢。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment