Skip to content

Commit

Permalink
Update README.md (#527)
Browse files Browse the repository at this point in the history
there is a mistake in writing the name of the list "responsiveWidgets"
  • Loading branch information
FadiFutainah committed Oct 26, 2023
1 parent 5e6d317 commit c8dfc96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
| minTextAdapt | bool | false | Whether to adapt the text according to the minimum of width and height |
| context | BuildContext | null | Get physical device data if not provided, by MediaQuery.of(context) |
| fontSizeResolver | Function | *default* | Function that specify how font size should be adapted. Default is that font size scale with width of screen. |
| reponsiveWidgets | Iterable<String> | null | List/Set of widget names that should be included in rebuilding tree. (See [How flutter_screenutil marks a widget needs build](#rebuild-list)) |
| responsiveWidgets| Iterable<String> | null | List/Set of widget names that should be included in rebuilding tree. (See [How flutter_screenutil marks a widget needs build](#rebuild-list)) |

**Note : You must either provide builder, child or both.**

Expand All @@ -59,7 +59,7 @@ Starting from version 5.9.0, ScreenUtilInit won't rebuild the whole widget tree,
- Widget is not a flutter widget (widgets are available in [Flutter Docs](https://docs.flutter.dev/reference/widgets))
- Widget does not start with underscore (`_`)
- Widget does not declare `SU` mixin
- `reponsiveWidgets` does not contains widget name
- `responsiveWidgets` does not contains widget name

If you have a widget that uses the library and doesn't meet these options you can either add `SU` mixin or add widget name in responsiveWidgets list.

Expand Down

0 comments on commit c8dfc96

Please sign in to comment.