Skip to content

Commit

Permalink
redefine desktop device: width > 600
Browse files Browse the repository at this point in the history
  • Loading branch information
shukebeta committed Jun 8, 2024
1 parent f5e47fa commit c35dd67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/screens/main_menu.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'dart:io';

import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/material.dart';
import 'package:happy_notes/screens/navigation/rail_navigation.dart';
Expand Down Expand Up @@ -87,7 +89,7 @@ class MainMenuState extends State<MainMenu> {

@override
Widget build(BuildContext context) {
final isDesktop = kIsWeb || MediaQuery.of(context).size.width >= 600;
final isDesktop = MediaQuery.of(context).size.width >= 600;

return Scaffold(
// appBar: AppBar(
Expand Down

0 comments on commit c35dd67

Please sign in to comment.