mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
feat(mobile): chat-style album activities timeline (#23185)
* feat(mobile): open assetviewer via album activities page * adjust ui behavior: keep current asset & disable initial forcus * init of v2... * refactoring... * refactor: remove _DismissibleWrapper * feat: initial scrolling to bottom * refactor: use feature toggle * refactor: new route page * fix: file name, dcm analyze * fix: test failure * fix: remove toggle and the exisitng style based on review feedback * refactorr: rename methods for clarity in comment bubble widget * chore: styling --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
@@ -5,13 +5,17 @@ import 'package:immich_mobile/widgets/common/confirm_dialog.dart';
|
||||
/// Wraps an [ActivityTile] and makes it dismissible
|
||||
class DismissibleActivity extends StatelessWidget {
|
||||
final String activityId;
|
||||
final ActivityTile body;
|
||||
final Widget body;
|
||||
final Function(String)? onDismiss;
|
||||
|
||||
const DismissibleActivity(this.activityId, this.body, {this.onDismiss, super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (onDismiss == null) {
|
||||
return body;
|
||||
}
|
||||
|
||||
return Dismissible(
|
||||
key: Key(activityId),
|
||||
dismissThresholds: const {DismissDirection.horizontal: 0.7},
|
||||
|
||||
Reference in New Issue
Block a user