Skip to content

Instantly share code, notes, and snippets.

@angelabauer
Created March 7, 2019 12:18
Show Gist options
  • Save angelabauer/83ff2026724618c4815f986743f6d70e to your computer and use it in GitHub Desktop.
Save angelabauer/83ff2026724618c4815f986743f6d70e to your computer and use it in GitHub Desktop.
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: Image.asset('images/ball1.png'),
);
}
}
@Nursultan312
Copy link

Screenshot 2024-09-26 at 14 59 36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment