fix: restore page banner ui improvement (#3604)

This commit is contained in:
Devanshu Rawat 2023-10-05 07:04:36 +05:30 committed by GitHub
parent 78d8ec9a3e
commit e9852a3934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ class DocumentBanner extends StatelessWidget {
constraints: const BoxConstraints(minHeight: 60), constraints: const BoxConstraints(minHeight: 60),
child: Container( child: Container(
width: double.infinity, width: double.infinity,
color: colorScheme.error, color: colorScheme.surfaceVariant,
child: FittedBox( child: FittedBox(
alignment: Alignment.center, alignment: Alignment.center,
fit: BoxFit.scaleDown, fit: BoxFit.scaleDown,
@ -30,7 +30,7 @@ class DocumentBanner extends StatelessWidget {
children: [ children: [
FlowyText.medium( FlowyText.medium(
LocaleKeys.deletePagePrompt_text.tr(), LocaleKeys.deletePagePrompt_text.tr(),
color: colorScheme.onError, color: colorScheme.tertiary,
fontSize: 14, fontSize: 14,
), ),
const HSpace(20), const HSpace(20),
@ -39,13 +39,13 @@ class DocumentBanner extends StatelessWidget {
minHeight: 40, minHeight: 40,
contentPadding: EdgeInsets.zero, contentPadding: EdgeInsets.zero,
bgColor: Colors.transparent, bgColor: Colors.transparent,
highlightColor: Theme.of(context).colorScheme.primaryContainer, highlightColor: Theme.of(context).colorScheme.onErrorContainer,
outlineColor: colorScheme.onError, outlineColor: colorScheme.tertiaryContainer,
borderRadius: Corners.s8Border, borderRadius: Corners.s8Border,
onPressed: onRestore, onPressed: onRestore,
child: FlowyText.medium( child: FlowyText.medium(
LocaleKeys.deletePagePrompt_restore.tr(), LocaleKeys.deletePagePrompt_restore.tr(),
color: colorScheme.onError, color: colorScheme.tertiary,
fontSize: 13, fontSize: 13,
), ),
), ),
@ -55,13 +55,13 @@ class DocumentBanner extends StatelessWidget {
minHeight: 40, minHeight: 40,
contentPadding: EdgeInsets.zero, contentPadding: EdgeInsets.zero,
bgColor: Colors.transparent, bgColor: Colors.transparent,
highlightColor: Theme.of(context).colorScheme.primary, highlightColor: Theme.of(context).colorScheme.error,
outlineColor: colorScheme.onError, outlineColor: colorScheme.tertiaryContainer,
borderRadius: Corners.s8Border, borderRadius: Corners.s8Border,
onPressed: onDelete, onPressed: onDelete,
child: FlowyText.medium( child: FlowyText.medium(
LocaleKeys.deletePagePrompt_deletePermanent.tr(), LocaleKeys.deletePagePrompt_deletePermanent.tr(),
color: colorScheme.onError, color: colorScheme.tertiary,
fontSize: 13, fontSize: 13,
), ),
), ),