Fix missing Material ancestor on history filters and support chat pages (#3647)

* Fix missing Material ancestor on history filters page

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015CQrMvFAMkzVAPBrvAwRjL

* Fix missing Material ancestor on support chat page

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015CQrMvFAMkzVAPBrvAwRjL

---------

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
claude[bot]
2026-09-23 20:14:00 +03:00
committed by GitHub
co-authored by Claude Opus 5.5
parent dfa5165766
commit 80a8c83d02
2 changed files with 125 additions and 118 deletions
@@ -12,37 +12,40 @@ class SupportChatPage extends StatelessWidget {
final SecureStorage secureStorage;
@override
Widget build(BuildContext context) => Container(
color: Theme.of(context).colorScheme.surface,
child: SafeArea(
child: Padding(
padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
child: Column(
children: [
ModalTopBar(
title: S.current.settings_support,
leadingIcon: Icon(Icons.arrow_back_ios_new),
leadingSemanticLabel: S.current.seed_alert_back,
onLeadingPressed: Navigator.of(context).pop),
FutureBuilder<String>(
future: getCookie(),
builder: (BuildContext context, AsyncSnapshot<String> snapshot) {
if (snapshot.hasData)
return Expanded(
child: ChatwootWidget(
secureStorage,
supportUrl: supportViewModel.fetchUrl(authToken: snapshot.data!),
appVersion: supportViewModel.appVersion,
fiatApiMode: supportViewModel.fiatApiMode,
walletType: supportViewModel.walletType,
walletSyncState: supportViewModel.walletSyncState,
builtInTorState: supportViewModel.builtInTorState,
),
);
return Container();
},
),
],
Widget build(BuildContext context) => Material(
color: Colors.transparent,
child: Container(
color: Theme.of(context).colorScheme.surface,
child: SafeArea(
child: Padding(
padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
child: Column(
children: [
ModalTopBar(
title: S.current.settings_support,
leadingIcon: Icon(Icons.arrow_back_ios_new),
leadingSemanticLabel: S.current.seed_alert_back,
onLeadingPressed: Navigator.of(context).pop),
FutureBuilder<String>(
future: getCookie(),
builder: (BuildContext context, AsyncSnapshot<String> snapshot) {
if (snapshot.hasData)
return Expanded(
child: ChatwootWidget(
secureStorage,
supportUrl: supportViewModel.fetchUrl(authToken: snapshot.data!),
appVersion: supportViewModel.appVersion,
fiatApiMode: supportViewModel.fiatApiMode,
walletType: supportViewModel.walletType,
walletSyncState: supportViewModel.walletSyncState,
builtInTorState: supportViewModel.builtInTorState,
),
);
return Container();
},
),
],
),
),
),
),