WillPopScopeウィジェットを親にして、onWillPopでFutureのfalseを返すようにする。
WillPopScope(
onWillPop: () async => false,
child: Text('hoge'),
);
More than 3 years have passed since last update.
WillPopScopeウィジェットを親にして、onWillPopでFutureのfalseを返すようにする。
WillPopScope(
onWillPop: () async => false,
child: Text('hoge'),
);
Register as a new user and use Qiita more conveniently