Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit a1204ba

Browse files
author
eightgran
committed
Add LitSettingsFooter
1 parent bbdf382 commit a1204ba

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

lib/containers.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export 'src/widgets/containers/lit_elevated_glass_card.dart';
1717
export 'src/widgets/backgrounds/lit_animated_gradient_background.dart';
1818
export 'src/widgets/containers/lit_draggable.dart';
1919
export 'src/widgets/containers/lit_footer.dart';
20+
export 'src/widgets/containers/lit_settings_footer.dart';
2021
export 'src/widgets/containers/clean_ink_well.dart';
2122
export 'src/widgets/containers/indexed_page_view.dart';
2223
export 'src/widgets/containers/lit_divider.dart';
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import 'package:flutter/material.dart';
2+
import 'package:lit_ui_kit/buttons.dart';
3+
import 'package:lit_ui_kit/containers.dart';
4+
5+
/// A widget displaying a List of minimalist buttons on a [LitFooter].
6+
///
7+
/// The title defaults to `Settings`, as its primary function is to display a
8+
/// minimalist settings section.
9+
class LitSettingsFooter extends StatelessWidget {
10+
/// The footer's title. Defaults to `Settings`.
11+
final String title;
12+
13+
/// A list of buttons to create interactive options.
14+
final List<LitPlainLabelButton> children;
15+
16+
/// Creates a [LitSettingsFooter].
17+
const LitSettingsFooter({
18+
Key? key,
19+
this.title = "Settings",
20+
required this.children,
21+
}) : super(key: key);
22+
23+
Widget build(BuildContext context) {
24+
return LitFooter(
25+
title: title,
26+
child: Container(
27+
child: Column(
28+
crossAxisAlignment: CrossAxisAlignment.end,
29+
children: children,
30+
),
31+
),
32+
);
33+
}
34+
}

0 commit comments

Comments
 (0)