Skip to content

Commit

Permalink
AppInfo: use wrap instead of row (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier authored Sep 26, 2022
1 parent 3110536 commit 5754818
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions lib/store_app/common/app_infos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ class AppInfos extends StatelessWidget {
required this.installDate,
required this.installDateIsoNorm,
required this.version,
this.mainAxisAlignment = MainAxisAlignment.center,
this.versionChanged,
this.mainAxisSize = MainAxisSize.max,
this.alignment = Alignment.center,
}) : super(key: key);

final bool strict;
Expand All @@ -42,28 +41,28 @@ class AppInfos extends StatelessWidget {
final String installDate;
final String installDateIsoNorm;
final String version;
final MainAxisAlignment mainAxisAlignment;
final bool? versionChanged;
final MainAxisSize mainAxisSize;
final AlignmentGeometry alignment;

@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: mainAxisAlignment,
mainAxisSize: mainAxisSize,
children: [
_Confinement(
strict: strict,
confinementName: confinementName,
),
const SizedBox(height: 40, width: 30, child: VerticalDivider()),
_License(headerStyle: headerStyle, license: license),
const SizedBox(height: 40, width: 30, child: VerticalDivider()),
_Version(
version: version,
versionChanged: versionChanged,
),
],
return Align(
alignment: alignment,
child: Wrap(
children: [
_Confinement(
strict: strict,
confinementName: confinementName,
),
const SizedBox(height: 40, width: 30, child: VerticalDivider()),
_License(headerStyle: headerStyle, license: license),
const SizedBox(height: 40, width: 30, child: VerticalDivider()),
_Version(
version: version,
versionChanged: versionChanged,
),
],
),
);
}
}
Expand Down

0 comments on commit 5754818

Please sign in to comment.