small fixes with new targets not implemented yet.
This commit is contained in:
@@ -46,6 +46,16 @@ class MyApp extends StatelessWidget {
|
||||
backgroundColor: Colors.grey[900],
|
||||
),
|
||||
),
|
||||
builder: (context, child) {
|
||||
final originalTextScaler = MediaQuery.of(context).textScaler;
|
||||
final clampedScale = originalTextScaler.clamp(minScaleFactor: 0.8, maxScaleFactor: 1.2);
|
||||
return MediaQuery(
|
||||
data: MediaQuery.of(context).copyWith(
|
||||
textScaler: clampedScale,
|
||||
),
|
||||
child: child!,
|
||||
);
|
||||
},
|
||||
home: const HomeScreen(),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user