An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
March 26, 2022 12:11 pm GMT
Original Link: https://dev.to/gulsenkeskin/flutter-systemchrome-4p68
Flutter SystemChrome
SystemChrome
SystemChrome
, uygulamanzn yerel platformda nasl grntleneceini kontrol etmek iin baz kolay yntemler sunan bir Flutter snfdr ve
Aygtn kendisini deitirmek iin kullanlr.
Uygulamay dikey modda kstlamak iin SystemChrome.setPreferredOrientations
kullanabilirsiniz. Ayrca bu snf kullanak ak renkli bir uygulamanz varsa, telefonunuzun durum ubuundaki saat ve pil simgesinin karanlk olmasn salayabilirsiniz (veya tam tersi).
void main() { AppSettings settings = AppSettings(); // Don't allow landscape mode SystemChrome.setPreferredOrientations([ DeviceOrientation.portraitUp, DeviceOrientation.portraitDown, ]) .then((_) => runApp( MyApp(settings: settings), ));}
Resource: Flutter in Action chapter-4
Original Link: https://dev.to/gulsenkeskin/flutter-systemchrome-4p68
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To