Line data Source code
1 : import 'package:amadeus_proto/pages/language/language_constants.dart';
2 : import 'package:amadeus_proto/widget/sub_page_header.dart';
3 : import 'package:flutter/material.dart';
4 : import 'package:localization/localization.dart';
5 :
6 : class LanguagePage extends StatelessWidget {
7 12 : const LanguagePage({super.key});
8 :
9 0 : @override
10 : Widget build(BuildContext context) {
11 0 : return Padding(
12 : padding: const EdgeInsets.all(15.0),
13 0 : child: Column(
14 : crossAxisAlignment: CrossAxisAlignment.start,
15 0 : children: [
16 : const SubPageHeader(),
17 : const SizedBox(
18 : height: 20,
19 : ),
20 0 : Text(
21 0 : "settings.language".i18n(),
22 : style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 25),
23 : ),
24 : const SizedBox(
25 : height: 20,
26 : ),
27 0 : Expanded(
28 0 : child: ListView.builder(
29 : shrinkWrap: true,
30 : physics: const AlwaysScrollableScrollPhysics(),
31 0 : itemCount: LANGUAGES.length,
32 0 : itemBuilder: (BuildContext context, int index) {
33 0 : return Padding(
34 : padding: const EdgeInsets.symmetric(vertical: 7.5),
35 0 : child: LANGUAGES[index]);
36 : },
37 : ),
38 : )
39 : ],
40 : ),
41 : );
42 : }
43 : }
|