Skip to content

Commit

Permalink
Refactor getText method in main.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
qwadrox committed Mar 11, 2024
1 parent 6177dd9 commit 66ae37e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,11 @@ class _MyAppState extends State<MyApp> {
String getText(HomeWidgetInfo widget) {
if (Platform.isIOS) {
return 'Family: ${widget.family}, Kind: ${widget.kind}';
} else if (Platform.isAndroid) {
} else {
return 'Widget id: ${widget.widgetId}, '
'Class Name: ${widget.androidClassName}, '
'Label: ${widget.label}';
}
return "";
}

await showDialog(
Expand Down

0 comments on commit 66ae37e

Please sign in to comment.