Clipboard.setData(ClipboardData(text: string));
since Flutter1.9,  you can use SelectableText, it enable the copy feature.
final clipboardData = await Clipboard.getData(Clipboard.kTextPlain);
String content = clipboardData.text;
// Flutter v1.7.8+hotfix.2
FocusScope.of(context).unfocus();
// Before
FocusScope.of(context).requestFocus(FocusNode());
add code as follow in the nested ListView
shrinkWrap: true,
physics: ClampingScrollPhysics(),
Scaffold(
  extendBodyBehindAppBar: true,
  appBar: AppBar(
    backgroundColor: Colors.transparent,
    elevation: 0,
    ....
  )
)
AppBar(
  automaticallyImplyLeading: false,
)
Everything will be alright because of you.
原文:https://www.cnblogs.com/huhx/p/13228565.html