Last active
June 3, 2022 05:09
-
-
Save ashraf267/0184f3c7c465fad309d6341eca0a62ae 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'; | |
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