From 26adda2f09d905069c892cfacddfeede8c974318 Mon Sep 17 00:00:00 2001 From: koukibadr Date: Wed, 5 Aug 2026 14:21:55 +0300 Subject: [PATCH] chore: update demo example --- example/lib/pages/home_page.dart | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/example/lib/pages/home_page.dart b/example/lib/pages/home_page.dart index ba51e91..7490e1e 100644 --- a/example/lib/pages/home_page.dart +++ b/example/lib/pages/home_page.dart @@ -202,12 +202,17 @@ class _MyHomePageState extends State { ), actions: [ TextButton( - style: ButtonStyle( - backgroundColor: MaterialStateProperty.all(Theme.of(context).colorScheme.secondaryContainer), - foregroundColor: MaterialStateProperty.all(Theme.of(context).colorScheme.onSecondaryContainer), - ), - onPressed: () => Navigator.pop(context), - child: const Text('Close'), + onPressed: () { + print('onTertiaryContainer: ${Theme.of(context).colorScheme.onTertiaryContainer}'); + Navigator.pop(context); + }, + child: Container( + padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8), + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.tertiaryContainer, + borderRadius: BorderRadius.circular(4), + ), + child: Text('Close', style: TextStyle(color: Theme.of(context).colorScheme.onTertiaryContainer))), ), ], ),