build method

  1. @override
dynamic build(
  1. dynamic context,
  2. 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) {},
              ),
            ],
          ),
        ],
      ),
    ),
  );
}