Skip to content

Commit 531e915

Browse files
committed
🎨 Improve code format with dart format.
1 parent 819b6ac commit 531e915

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

example/lib/pages/multi_assets_page.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,11 @@ class _MultiAssetsPageState extends State<MultiAssetsPage> {
454454
Widget get selectedAssetsWidget => AnimatedContainer(
455455
duration: kThemeChangeDuration,
456456
curve: Curves.easeInOut,
457-
height: assets.isNotEmpty ? isDisplayingDetail ? 120.0 : 80.0 : 40.0,
457+
height: assets.isNotEmpty
458+
? isDisplayingDetail
459+
? 120.0
460+
: 80.0
461+
: 40.0,
458462
child: Column(
459463
children: <Widget>[
460464
SizedBox(

example/lib/pages/single_assets_page.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,11 @@ class _SingleAssetPageState extends State<SingleAssetPage> {
426426
Widget get selectedAssetsWidget => AnimatedContainer(
427427
duration: kThemeChangeDuration,
428428
curve: Curves.easeInOut,
429-
height: assets.isNotEmpty ? isDisplayingDetail ? 120.0 : 80.0 : 40.0,
429+
height: assets.isNotEmpty
430+
? isDisplayingDetail
431+
? 120.0
432+
: 80.0
433+
: 40.0,
430434
child: Column(
431435
children: <Widget>[
432436
SizedBox(

lib/src/widget/asset_picker.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,9 @@ class AssetPicker extends StatelessWidget {
514514
duration: switchingPathDuration,
515515
curve: switchingPathCurve,
516516
top: isAppleOS
517-
? !isSwitchingPath ? -maxHeight : appBarHeight
517+
? !isSwitchingPath
518+
? -maxHeight
519+
: appBarHeight
518520
: -(!isSwitchingPath ? maxHeight : 1.0),
519521
child: AnimatedOpacity(
520522
duration: switchingPathDuration,

0 commit comments

Comments
 (0)