Line data Source code
1 : import 'package:amadeus_proto/constants.dart';
2 : import 'package:amadeus_proto/exercises/lessons_constants.dart';
3 : import 'package:amadeus_proto/exercises/widget/previous_button.dart';
4 : import 'package:amadeus_proto/utils/searchbar.dart';
5 : import 'package:flutter/material.dart';
6 : import 'package:localization/localization.dart';
7 :
8 : class LessonList extends StatelessWidget {
9 12 : const LessonList({super.key});
10 :
11 0 : @override
12 : Widget build(BuildContext context) {
13 0 : return Scaffold(
14 0 : body: SafeArea(
15 0 : child: Padding(
16 : padding: const EdgeInsets.all(smallPadding),
17 0 : child: Column(
18 0 : children: [
19 : // const SizedBox(height: 35),
20 0 : Row(
21 0 : children: [
22 : const PreviousButton(),
23 0 : Text(
24 0 : "lessons.title".i18n(),
25 : style: const TextStyle(
26 : color: Colors.black,
27 : fontSize: largeTextSize,
28 : fontWeight: FontWeight.bold),
29 : ),
30 : ],
31 : ),
32 : const SearchBarWidget(),
33 0 : Expanded(
34 0 : child: ListView.builder(
35 : shrinkWrap: true,
36 : physics: const AlwaysScrollableScrollPhysics(),
37 0 : itemCount: lessons.length,
38 0 : itemBuilder: (BuildContext context, int index) {
39 0 : return Padding(
40 : padding: const EdgeInsets.all(smallPadding),
41 0 : child: lessons[index]);
42 : },
43 : ),
44 : ),
45 : ],
46 : ),
47 : ),
48 : ),
49 : );
50 : }
51 : }
|