mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
Unlocked landscape orientation and small bugs fixed
This commit is contained in:
parent
fb9fbbd35e
commit
42f589793c
4 changed files with 33 additions and 27 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue