These properties have been removed, as can be seen in the class (ListTile) documentation:
https://api.flutter.dev/flutter/material/ListTile/ListTile.html
Please take a look at this package here, in order to use these properties:
https://pub.dev/packages/list_tile_more_customizable
[EDIT]
For your Scaffold issue please try to use a static helper function like so, then pass the string to render, along with the BuildContext:
static Future showSimpleSnackBar(
String message, GlobalKey<ScaffoldState> contextState) async {
final snackBar = SnackBar(
content: Text(message),
duration: Duration(seconds: 3),
action: SnackBarAction(
label: "Got it",
onPressed: () {
//invoke an action here...
},
),
);
contextState.currentState.removeCurrentSnackBar();
contextState.currentState.showSnackBar(snackBar);
}
Make sure as well that the BuildContext is coming from a Global ScaffoldKey, and that the scaffold will be responsible with rendering the snackbar.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…