Unlocked landscape orientation and small bugs fixed

This commit is contained in:
Juan Gilsanz Polo 2023-05-01 04:33:31 +02:00
parent fb9fbbd35e
commit 42f589793c
4 changed files with 33 additions and 27 deletions

View file

@ -79,8 +79,10 @@ class _DnsSettingsWidgetState extends State<DnsSettingsWidget> {
final serversProvider = Provider.of<ServersProvider>(context);
final appConfigProvider = Provider.of<AppConfigProvider>(context);
final width = MediaQuery.of(context).size.width;
void navigate(Widget widget) {
if (!(Platform.isAndroid || Platform.isIOS)) {
if (width > 900 || !(Platform.isAndroid || Platform.isIOS)) {
SplitView.of(context).push(widget);
}
else {