Committed by
GitHub
added useInheritedMediaQuery property for flutter 3.10 (#480)
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -41,7 +41,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | @@ -41,7 +41,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
41 | ### Property | 41 | ### Property |
42 | 42 | ||
43 | | Property | Type | Default Value | Description | | 43 | | Property | Type | Default Value | Description | |
44 | -| --------------- | ------------ | ------------- | --------------------------------------------------------------------------- | | 44 | +| --------------- |--------------|---------------|-----------------------------------------------------------------------------| |
45 | | deviceSize | Size | null | The size of the physical device | | 45 | | deviceSize | Size | null | The size of the physical device | |
46 | | designSize | Size | Size(360,690) | The size of the device screen in the design draft, in dp | | 46 | | designSize | Size | Size(360,690) | The size of the device screen in the design draft, in dp | |
47 | | builder | Function | null | Return widget that uses the library in a property (ex: MaterialApp's theme) | | 47 | | builder | Function | null | Return widget that uses the library in a property (ex: MaterialApp's theme) | |
@@ -51,6 +51,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | @@ -51,6 +51,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
51 | | splitScreenMode | bool | false | support for split screen | | 51 | | splitScreenMode | bool | false | support for split screen | |
52 | | minTextAdapt | bool | false | Whether to adapt the text according to the minimum of width and height | | 52 | | minTextAdapt | bool | false | Whether to adapt the text according to the minimum of width and height | |
53 | | context | BuildContext | null | Get physical device data if not provided, by MediaQuery.of(context) | | 53 | | context | BuildContext | null | Get physical device data if not provided, by MediaQuery.of(context) | |
54 | +| useInheritedMediaQuery | bool | true | Set this to true for Flutter 3.10 to avoid keyboard overlay on TextField | | ||
54 | 55 | ||
55 | **Note : You must either provide builder, child or both.** | 56 | **Note : You must either provide builder, child or both.** |
56 | 57 |
-
Please register or login to post a comment