Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

creating a stateful widget

class MyApp extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _MyAppState();
  }
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return Container(color: const Color(0xFFFFE306));
  }
}
Source by appdividend.com #
 
PREVIOUS NEXT
Tagged: #creating #stateful #widget
ADD COMMENT
Topic
Name
4+4 =