Skip to content

Instantly share code, notes, and snippets.

@ashraf267
Last active June 3, 2022 05:09
Show Gist options
  • Save ashraf267/0184f3c7c465fad309d6341eca0a62ae to your computer and use it in GitHub Desktop.
Save ashraf267/0184f3c7c465fad309d6341eca0a62ae to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
void main() => runApp();
// Stateless Widget
class BallPage extends StatelessWidget {
const BallPage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp();
}
}
// Stateful Widget
class Ball extends StatefulWidget {
const Ball({Key? key}) : super(key: key);
@override
State<Ball> createState() => _BallState();
}
class _BallState extends State<Ball> {
@override
Widget build(BuildContext context) {
return Center();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment