File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -62,20 +62,23 @@ Widget settingList(
6262 required List <dynamic > itemList,
6363 required Widget Function (BuildContext , int ) itemBuilder,
6464}) {
65- double maxWidth = (getDeviceSize (context).width / 2.0 ) - 12.0 ;
65+ double maxWidth = getDeviceSize (context).width - 24.0 ;
66+ if (getDeviceSize (context).isLargeDevice) {
67+ maxWidth /= 2.0 ;
68+ }
6669
6770 return AnimatedSize (
6871 duration: shortAnimationDuration,
6972 child: ListTile (
7073 title: ConstrainedBox (
71- constraints: BoxConstraints (maxWidth: maxWidth),
74+ constraints: BoxConstraints (maxWidth: maxWidth * 0.6 ),
7275 child: Text (
7376 title,
7477 style: textStyleTitle,
7578 ),
7679 ),
7780 trailing: ConstrainedBox (
78- constraints: BoxConstraints (maxWidth: maxWidth),
81+ constraints: BoxConstraints (maxWidth: maxWidth * 0.4 ),
7982 child: settingListTitle (
8083 title: selectedItem,
8184 color: Theme .of (context).textTheme.bodySmall! .color! ,
You can’t perform that action at this time.
0 commit comments