Answers for "how to display message after when we copied to clipboard in flutter"

2

button copy to clipboard flutter

Container(
  width: double.maxFinite,
  child: RaisedButton.icon(
    color: Colors.blue,
    onPressed: () {
      var data = jsonEncode(command.dioError);
      Clipboard.setData(ClipboardData(text: data.toString()));
      snackBar();
    },
    label: Text('Copy error to clipboard', style: TextStyle(color: Colors.white)),
    icon: Icon(Icons.copy, color: Colors.white),
    textColor: Colors.white,
    splashColor: Colors.blueAccent,
   ),
),
Posted by: Guest on January-12-2021

Code answers related to "how to display message after when we copied to clipboard in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language