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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.49.1 #1784

Merged
merged 3 commits into from
Jul 12, 2024
Merged

v2.49.1 #1784

Show file tree
Hide file tree
Changes from all commits
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
11 changes: 5 additions & 6 deletions lib/app_shell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import 'package:ardrive/blocs/prompt_to_snapshot/prompt_to_snapshot_bloc.dart';
import 'package:ardrive/blocs/prompt_to_snapshot/prompt_to_snapshot_event.dart';
import 'package:ardrive/components/profile_card.dart';
import 'package:ardrive/components/side_bar.dart';
import 'package:ardrive/drive_explorer/multi_thumbnail_creation/bloc/multi_thumbnail_creation_bloc.dart';
import 'package:ardrive/drive_explorer/multi_thumbnail_creation/multi_thumbnail_creation_warn_modal.dart';
import 'package:ardrive/gift/reedem_button.dart';
import 'package:ardrive/misc/misc.dart';
import 'package:ardrive/pages/drive_detail/components/hover_widget.dart';
import 'package:ardrive/shared/blocs/banner/app_banner_bloc.dart';
import 'package:ardrive/sync/domain/cubit/sync_cubit.dart';
import 'package:ardrive/sync/domain/sync_progress.dart';
import 'package:ardrive/utils/logger.dart';
import 'package:ardrive/utils/show_general_dialog.dart';
import 'package:ardrive/utils/size_constants.dart';
import 'package:ardrive_ui/ardrive_ui.dart';
import 'package:ardrive_utils/ardrive_utils.dart';
Expand Down Expand Up @@ -218,11 +219,9 @@ class AppShellState extends State<AppShell> {
text: 'add them now!',
recognizer: TapGestureRecognizer()
..onTap = () {
context
.read<
MultiThumbnailCreationBloc>()
.add(
const CreateMultiThumbnailForAllDrives());
showArDriveDialog(context,
content:
const MultiThumbnailCreationWarningModal());
},
style: typography
.paragraphNormal(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import 'package:ardrive/drive_explorer/multi_thumbnail_creation/bloc/multi_thumbnail_creation_bloc.dart';
import 'package:ardrive_ui/ardrive_ui.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

class MultiThumbnailCreationWarningModal extends StatelessWidget {
const MultiThumbnailCreationWarningModal({super.key});

@override
Widget build(BuildContext context) {
return ArDriveStandardModalNew(
actions: [
ModalAction(
action: () {
Navigator.of(context).pop();
},
title: 'Cancel',
),
ModalAction(
action: () {
context
.read<MultiThumbnailCreationBloc>()
.add(const CreateMultiThumbnailForAllDrives());
Navigator.of(context).pop();
},
title: 'Continue',
),
],
title: 'Create thumbnails',
description:
'This will create thumnails for the images stored in all your public and private drives. You will not be charged!\nThis may take a while',
);
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Secure, permanent storage

publish_to: 'none'

version: 2.49.0
version: 2.49.1

environment:
sdk: '>=3.2.0 <4.0.0'
Expand Down
Loading