49 lines
1.3 KiB
Dart
49 lines
1.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import '../colors/app_colors.dart';
|
|
|
|
import '../colors/app_gradients.dart';
|
|
import '../strings/terms_strings.dart';
|
|
import '../widgets/terms_content.dart';
|
|
|
|
class TermsScreen extends StatelessWidget {
|
|
const TermsScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: PreferredSize(
|
|
preferredSize: const Size.fromHeight(kToolbarHeight),
|
|
child: Container(
|
|
decoration: const BoxDecoration(gradient: kAppBarGradient),
|
|
child: AppBar(
|
|
backgroundColor: Colors.transparent,
|
|
foregroundColor: Colors.white,
|
|
surfaceTintColor: Colors.transparent,
|
|
elevation: 0,
|
|
scrolledUnderElevation: 0,
|
|
title: const Text(
|
|
TermsStrings.pageTitle,
|
|
style: TextStyle(fontWeight: FontWeight.w900),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
body: Container(
|
|
color: AppColors.background,
|
|
child: SafeArea(
|
|
child: SingleChildScrollView(
|
|
padding: const EdgeInsets.fromLTRB(20, 24, 20, 24),
|
|
child: Column(
|
|
children: [
|
|
const TermsHeader(),
|
|
const SizedBox(height: 22),
|
|
const TermsBody(),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|