Last active
October 20, 2025 13:38
-
-
Save shafayathossain/b61bee1756ad5aae85853b8aaabdc1a5 to your computer and use it in GitHub Desktop.
Flutter Preview - Preview Function
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
| @Preview( | |
| name: 'Simple Widget', | |
| size: Size(401, 300), | |
| wrapper: materialAppWrapper, // <---- 3. Add widget wrapper | |
| ) | |
| Widget previewSimpleWidget() { | |
| return Center( | |
| child: SimpleWidget( | |
| text: "Settings", | |
| icon: Icons.settings, | |
| ), | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment