Today I tested the app on a smaller phone. There was no error on the screen that I created as a listview. But it gave an error on the screen I created as gridview. The texts do not fit and the application does not work.
Bonus: I'm asking because I don't know. On the listview screen, 15 data is displayed on the large screen phone, while 9 data is displayed on the small screen phone. Is this normal?
Also, when I try to write the following codes, it does not recognize and accept: (setContext) & (minTextAdapt: true,) and (child:widget)
builder: (context, widget) {
ScreenUtil.setContext(context);
return MediaQuery(
//Setting font does not change with system font size
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
child: widget,
Today I tested the app on a smaller phone. There was no error on the screen that I created as a listview. But it gave an error on the screen I created as gridview. The texts do not fit and the application does not work.
Bonus: I'm asking because I don't know. On the listview screen, 15 data is displayed on the large screen phone, while 9 data is displayed on the small screen phone. Is this normal?
sdk: ">=2.15.1 <3.0.0"
Also, when I try to write the following codes, it does not recognize and accept: (setContext) & (minTextAdapt: true,) and (child:widget)
Gridview builder screen: