Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Fix Wechat Moment preview issue #111

Merged
merged 2 commits into from
May 1, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
馃帹 Move WeChat Moment pick method to multi assets page
  • Loading branch information
AlexV525 committed May 1, 2021
commit f1282763c7d0549f229c94fd495478eb8fd7baff
13 changes: 13 additions & 0 deletions example/lib/pages/multi_assets_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ class _MultiAssetsPageState extends State<MultiAssetsPage>
PickMethodModel.threeItemsGrid(maxAssetsCount),
PickMethodModel.customFilterOptions(maxAssetsCount),
PickMethodModel.prependItem(maxAssetsCount),
PickMethodModel(
icon: '馃幁',
name: 'WeChat Moment',
description: 'Pick assets like the WeChat Moment pattern.',
method: (BuildContext context, List<AssetEntity> assets) {
return AssetPicker.pickAssets(
context,
maxAssets: maxAssetsCount,
selectedAssets: assets,
specialPickerType: SpecialPickerType.wechatMoment,
);
},
),
PickMethodModel.noPreview(maxAssetsCount),
PickMethodModel(
icon: '馃帤',
Expand Down
13 changes: 0 additions & 13 deletions example/lib/pages/single_assets_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,6 @@ class _SingleAssetPageState extends State<SingleAssetPage>
PickMethodModel.threeItemsGrid(maxAssetsCount),
PickMethodModel.customFilterOptions(maxAssetsCount),
PickMethodModel.prependItem(maxAssetsCount),
PickMethodModel(
icon: '馃幁',
name: 'WeChat moment',
description: 'Pick assets like the WeChat moment pattern.',
method: (BuildContext context, List<AssetEntity> assets) {
return AssetPicker.pickAssets(
context,
maxAssets: maxAssetsCount,
selectedAssets: assets,
specialPickerType: SpecialPickerType.wechatMoment,
);
},
),
PickMethodModel.noPreview(maxAssetsCount),
];
}
Expand Down