skip to Main Content

Flutter – WillPopScope is deprecated

I want to exit the alert. WillPopScope( onWillPop: () async { final shouldExit = await showDialog( context: context, builder: (context) => CupertinoAlertDialog( title: const Text('Exit App'), content: const Text('Are you sure you want to exit the app?'), actions: [ CupertinoDialogAction(…

VIEW QUESTION

Flutter/Dart Future

class _WorterBuchState extends State<WorterBuch> with TickerProviderStateMixin { var wordPair= '' ; @override void initState(){ super.initState(); load(); } Future<void> load() async{ SharedPreferences prefs = await SharedPreferences.getInstance(); prefs.setString('key', 'value'); wordPair = await "key : " + (prefs.getString('key') as String); } @override Widget…

VIEW QUESTION

Flutter text size

I want to have button that will resize font size across my entire aplication. I want to change size of every text from 100% of size that I already have to 200%. Android accessibility already does that. Android have "fint…

VIEW QUESTION
Back To Top
Search