mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-03-31 17:20:22 +02:00
35 lines
975 B
Dart
35 lines
975 B
Dart
import 'package:flutter/material.dart';
|
|
import 'settings/sections/offline_mode_section.dart';
|
|
import 'settings/sections/offline_areas_section.dart';
|
|
import '../services/localization_service.dart';
|
|
|
|
class OfflineSettingsScreen extends StatelessWidget {
|
|
const OfflineSettingsScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final locService = LocalizationService.instance;
|
|
|
|
return AnimatedBuilder(
|
|
animation: LocalizationService.instance,
|
|
builder: (context, child) => Scaffold(
|
|
appBar: AppBar(
|
|
title: Text(locService.t('settings.offlineSettings')),
|
|
),
|
|
body: ListView(
|
|
padding: EdgeInsets.fromLTRB(
|
|
16,
|
|
16,
|
|
16,
|
|
16 + MediaQuery.of(context).padding.bottom,
|
|
),
|
|
children: const [
|
|
OfflineModeSection(),
|
|
Divider(),
|
|
OfflineAreasSection(),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
} |