bullseye/lib/adaptive.dart
Tony Bark 1793c89be6 Removed desktop support
- Desktop support was added just as a test.
- Desktop code has been repurposed for tablets.
2022-09-07 12:33:21 -04:00

10 lines
355 B
Dart

import 'package:flutter/material.dart';
bool isMobile(BuildContext context) {
// The equivalent of the "smallestWidth" qualifier on Android.
var shortestSide = MediaQuery.of(context).size.shortestSide;
// Determine if we should use mobile layout or not, 600 here is
// a common breakpoint for a typical 7-inch tablet.
return shortestSide < 600;
}