Line data Source code
1 : import 'package:flutter/material.dart';
2 :
3 : import '../../models/section_model.dart';
4 : import 'buttons/section_folder_button.dart';
5 : import 'buttons/use_case_document_button.dart';
6 :
7 : class SectionsListItem extends StatelessWidget {
8 : final SectionModel _section;
9 :
10 0 : const SectionsListItem(SectionModel section, {Key? key})
11 : : _section = section,
12 0 : super(key: key);
13 :
14 0 : @override
15 : Widget build(BuildContext context) {
16 0 : return Padding(
17 : padding: const EdgeInsets.fromLTRB(8.0, 4.0, 8.0, 0.0),
18 0 : child: SizedBox(
19 : height: 65,
20 0 : child: Card(
21 : color: Colors.black12,
22 0 : child: Row(
23 : mainAxisAlignment: MainAxisAlignment.spaceBetween,
24 0 : children: [
25 0 : Padding(
26 : padding: const EdgeInsets.only(left: 15.0),
27 0 : child: Text(
28 0 : _section.name,
29 : style: const TextStyle(fontSize: 20),
30 : ),
31 : ),
32 0 : Row(
33 0 : children: [
34 0 : UseCaseDocumentButton(_section.useCasesDocId),
35 0 : SectionFolderButton(_section.folderId),
36 : ],
37 : )
38 : ],
39 : ),
40 : ),
41 : ),
42 : );
43 : }
44 : }
|