diff --git a/lib/pages/profile_info/copiable_profile_row/copiable_profile_row.dart b/lib/pages/profile_info/copiable_profile_row/copiable_profile_row.dart index b451fc3744..9b5482867b 100644 --- a/lib/pages/profile_info/copiable_profile_row/copiable_profile_row.dart +++ b/lib/pages/profile_info/copiable_profile_row/copiable_profile_row.dart @@ -9,6 +9,8 @@ import 'package:flutter_gen/gen_l10n/l10n.dart'; import 'package:linagora_design_flutter/colors/linagora_sys_colors.dart'; class CopiableProfileRow extends StatelessWidget { + static const snackBarDuration = Duration(milliseconds: 500); + final String caption; final String copiableText; final Widget leadingIcon; @@ -20,6 +22,7 @@ class CopiableProfileRow extends StatelessWidget { Key? key, }) : super(key: key); + @override Widget build(BuildContext context) { return Padding( @@ -31,7 +34,7 @@ class CopiableProfileRow extends StatelessWidget { onTap: () { TwakeClipboard.instance.copyText(copiableText); TwakeSnackBar.show( - duration: const Duration(milliseconds: 500), + duration: snackBarDuration, context, L10n.of(context)!.copiedToClipboard, );