Skip to content

Commit

Permalink
Fix Chip in article_info_page for linux-build
Browse files Browse the repository at this point in the history
  • Loading branch information
TaYaKi71751 committed Dec 13, 2023
1 parent c10fc98 commit f65661e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/pages/article_info/article_info_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,11 @@ class MultiChipWidget extends StatelessWidget {
Expanded(
child: Wrap(
spacing: 3.0,
runSpacing: -9.0,
runSpacing: ((){
if(Platform.isAndroid || Platform.isIOS) return -9.0;
if(Platform.isLinux) return 9.0;
return -9.0;
})(),
children: groupName
.map((x) => _Chip(group: x.item1, name: x.item2))
.toList(),
Expand Down Expand Up @@ -1144,7 +1148,11 @@ class _Chip extends StatelessWidget {
);

return SizedBox(
height: 44,
height: ((){
if(Platform.isAndroid || Platform.isIOS) return 44.0;
if(Platform.isLinux) return 44.0;
return 44.0;
})(),
child: FittedBox(child: fc),
);
}
Expand Down

0 comments on commit f65661e

Please sign in to comment.