Last active
August 30, 2019 13:27
-
-
Save adityapatnaik/2e463147b918e289efcc97c05a8cfe6b to your computer and use it in GitHub Desktop.
Statefull Widget
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
class BlueCar extends StatefulWidget { | |
const BlueCar({ Key key, @required child }) : super(key: key); // Constructor | |
@override | |
_BlueCarState createState() => _BlueCarState(); | |
} | |
class _BlueCarState extends State<BlueCar> { | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
color: const Color(0xFFFFE306), | |
child: Container( | |
child: Container( | |
//child: Container() | |
) | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment