removed media query

This commit is contained in:
Piyush Suthar
2023-08-21 20:22:40 +05:30
parent e25a12b684
commit 9fffb3829f
2 changed files with 16 additions and 8 deletions

View File

@ -39,14 +39,14 @@ class MyApp extends StatelessWidget {
return DynamicColorBuilder( return DynamicColorBuilder(
builder: (ColorScheme? lightDynamic, ColorScheme? darkDynamic) { builder: (ColorScheme? lightDynamic, ColorScheme? darkDynamic) {
return MaterialApp( return MaterialApp(
builder: (BuildContext context, Widget? child) { // builder: (BuildContext context, Widget? child) {
return MediaQuery( // return MediaQuery(
data: MediaQuery.of(context).copyWith( // data: MediaQuery.of(context).copyWith(
textScaleFactor: 1.0, // textScaleFactor: 1.0,
), // ),
child: child!, // child: child!,
); // );
}, // },
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
title: 'Openlib', title: 'Openlib',
theme: ThemeData( theme: ThemeData(

View File

@ -145,6 +145,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "5.3.0" version: "5.3.0"
dynamic_color:
dependency: "direct main"
description:
name: dynamic_color
sha256: de4798a7069121aee12d5895315680258415de9b00e717723a1bd73d58f0126d
url: "https://pub.dev"
source: hosted
version: "1.6.6"
epub_view: epub_view:
dependency: "direct main" dependency: "direct main"
description: description: