mirror of
https://github.com/foss42/apidash.git
synced 2025-08-05 21:10:33 +08:00
refactor: MediaQuery as InheritedModel
This commit is contained in:
@ -24,7 +24,7 @@ class IntroMessage extends StatelessWidget {
|
||||
future: introData(),
|
||||
builder: (BuildContext context, AsyncSnapshot<void> snapshot) {
|
||||
final isMobile = kIsMobile &&
|
||||
MediaQuery.of(context).size.width < kMinWindowSize.width;
|
||||
MediaQuery.sizeOf(context).width < kMinWindowSize.width;
|
||||
if (snapshot.hasError) {
|
||||
return const ErrorMessage(message: "An error occured");
|
||||
}
|
||||
|
Reference in New Issue
Block a user