Skip to content

Commit

Permalink
Merge pull request #1739 from ardriveapp/PE-6115-upload-manifest-via-…
Browse files Browse the repository at this point in the history
…turbo

PE-6115: feat(upload manifest with turbo)
  • Loading branch information
thiagocarvalhodev authored May 15, 2024
2 parents 1fc4864 + 6758cad commit 9028959
Show file tree
Hide file tree
Showing 23 changed files with 1,799 additions and 866 deletions.
35 changes: 23 additions & 12 deletions lib/app_shell.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class AppShellState extends State<AppShell> {
),
BlocBuilder<ProfileCubit, ProfileState>(
builder: (context, state) {
final typography =
ArDriveTypographyNew.of(context);
return FutureBuilder(
future: context
.read<ProfileCubit>()
Expand All @@ -106,22 +108,29 @@ class AppShellState extends State<AppShell> {
child: Material(
borderRadius: BorderRadius.circular(8),
child: ProgressDialog(
useNewArDriveUI: true,
progressBar: ProgressBar(
percentage: context
.read<SyncCubit>()
.syncProgressController
.stream,
),
percentageDetails: _syncStreamBuilder(
builderWithData: (syncProgress) =>
Text(appLocalizationsOf(
context)
.syncProgressPercentage(
(syncProgress
.progress *
100)
.roundToDouble()
.toString()))),
percentageDetails:
_syncStreamBuilder(
builderWithData: (syncProgress) =>
Text(
appLocalizationsOf(context)
.syncProgressPercentage(
(syncProgress.progress * 100)
.roundToDouble()
.toString(),
),
style:
typography.paragraphNormal(
fontWeight: ArFontWeight.bold,
),
),
),
progressDescription:
_syncStreamBuilder(
builderWithData: (syncProgress) =>
Expand All @@ -140,8 +149,10 @@ class AppShellState extends State<AppShell> {
: appLocalizationsOf(
context)
.syncingOnlyOneDrive,
style: ArDriveTypography.body
.buttonNormalBold(),
style:
typography.paragraphNormal(
fontWeight: ArFontWeight.bold,
),
),
),
title: isCurrentProfileArConnect
Expand Down
Loading

0 comments on commit 9028959

Please sign in to comment.