Skip to content

Commit

Permalink
Update drive_share_dialog.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Oct 16, 2024
1 parent 0698659 commit 66a507b
Showing 1 changed file with 37 additions and 20 deletions.
57 changes: 37 additions & 20 deletions lib/components/drive_share_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,27 +66,44 @@ class DriveShareDialogState extends State<DriveShareDialog> {
Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Expanded(
child: ArDriveTextFieldNew(
initialValue: state.driveShareLink.toString(),
isEnabled: false,
),
),
const SizedBox(width: 16),
CopyButton(
positionX: 4,
positionY: 40,
copyMessageColor: ArDriveTheme.of(context)
.themeData
.tableTheme
.selectedItemColor,
showCopyText: true,
text: state.driveShareLink.toString(),
child: Text(
appLocalizationsOf(context).copyLink,
style: typography.paragraphLarge().copyWith(
decoration: TextDecoration.underline,
Flexible(
child: Container(
padding: const EdgeInsets.fromLTRB(20, 14, 20, 14),
decoration: BoxDecoration(
color: ArDriveTheme.of(context)
.themeData
.colorTokens
.inputDisabled,
borderRadius: BorderRadius.circular(6),
border: Border.all(
color: ArDriveTheme.of(context)
.themeData
.colorTokens
.strokeMid,
),
),
child: Row(
children: [
Expanded(
child: Text(
state.driveShareLink.toString(),
style: typography.paragraphNormal(
color: ArDriveTheme.of(context)
.themeData
.colorTokens
.textXLow,
fontWeight: ArFontWeight.semiBold,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
),
const SizedBox(width: 8),
CopyButton(
text: state.driveShareLink.toString(),
),
],
),
),
),
],
Expand Down

0 comments on commit 66a507b

Please sign in to comment.