build method

  1. @override
dynamic build(
  1. dynamic context,
  2. dynamic ref
)

Implementation

@override
Widget build(BuildContext context, WidgetRef ref) {
  // ensure we are triggering a sync and do not delay this process
  // ignore: unused_local_variable, no_leading_underscores_for_local_identifiers
  final _syncState = ref.read(syncStateProvider);
  return Scaffold(
    body: Center(
      child: Container(
        constraints: const BoxConstraints(maxWidth: 500),
        padding: const EdgeInsets.symmetric(horizontal: 20),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.stretch,
          children: [
            const Spacer(),
            Text(
              L10n.of(context).analyticsTitle,
              style: Theme.of(context).textTheme.headlineMedium?.copyWith(
                    color: Theme.of(context).colorScheme.secondary,
                  ),
              textAlign: TextAlign.center,
            ),
            const SizedBox(height: 10),
            Text(
              L10n.of(context).analyticsDescription1,
              style: Theme.of(context).textTheme.bodyMedium,
            ),
            const SizedBox(height: 10),
            Text(
              L10n.of(context).analyticsDescription2,
              style: Theme.of(context).textTheme.bodyMedium,
            ),
            _buildCrashAnalytics(context, ref),
            const SizedBox(height: 40),
            _buildSkipActionButton(context),
            const Spacer(),
          ],
        ),
      ),
    ),
  );
}