mirror of
https://github.com/tonytins/bullseye.git
synced 2025-03-25 00:09:06 +00:00
- Desktop support was added just as a test. - Desktop code has been repurposed for tablets.
10 lines
355 B
Dart
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;
|
|
}
|