build method
dynamic
build( - dynamic context,
- dynamic ref
)
Implementation
@override
Widget build(BuildContext context, WidgetRef ref) {
return WithSidebar(
sidebar: const SettingsPage(),
child: Scaffold(
appBar: AppBar(
title: Text(L10n.of(context).chat),
automaticallyImplyLeading: !context.isLargeScreen,
),
body: SettingsList(
sections: [
SettingsSection(
title: Text(L10n.of(context).defaultModes),
tiles: [
_autoDownload(context, ref),
_typingNotice(context, ref),
SettingsTile.switchTile(
title: Text(L10n.of(context).chatSettingsReadReceipts),
description:
Text(L10n.of(context).chatSettingsReadReceiptsExplainer),
enabled: false,
initialValue: false,
onToggle: (newVal) {},
),
],
),
],
),
),
);
}