Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
quetool committed Feb 1, 2024
1 parent 5f7e582 commit 525ed94
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions example/dapp/lib/widgets/method_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ class MethodDialogState extends State<MethodDialog> {
future: widget.response,
builder: (BuildContext context, AsyncSnapshot<dynamic> snapshot) {
if (snapshot.hasData) {
dynamic data = snapshot.data;
if (snapshot.data is String) {
data = jsonDecode(snapshot.data);
}
final String t = jsonEncode(data);
final String t = jsonEncode(snapshot.data);
return InkWell(
onTap: () {
Clipboard.setData(ClipboardData(text: t)).then(
Expand Down

0 comments on commit 525ed94

Please sign in to comment.