Build: Arrow Function Demo
This screen demonstrates how to use functions and arrow syntax in Flutter by showing a button that updates a greeting message when pressed.
Target UI
------------------------- | Arrow Function Demo | |-----------------------| | | | Greeting: Hello! | | | | [Press Me] | | | -------------------------
Display a greeting message text starting with 'Hello!'
Add a button labeled 'Press Me'
When the button is pressed, update the greeting to 'Hello, Flutter!' using a function with arrow syntax
Use a StatelessWidget for the main app and a StatefulWidget for the screen