mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-04 09:09:48 +08:00
@@ -1,4 +1,3 @@
|
||||
import 'package:PiliPlus/utils/platform_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// from Getx
|
||||
@@ -72,10 +71,4 @@ extension ContextExtensions on BuildContext {
|
||||
|
||||
/// True if the current device is Tablet
|
||||
bool get isTablet => isSmallTablet || isLargeTablet;
|
||||
|
||||
String get platformName => PlatformUtils.isDesktop
|
||||
? 'desktop'
|
||||
: isTablet
|
||||
? 'pad'
|
||||
: 'phone';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user