mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
tx history improved layout
This commit is contained in:
@@ -11,6 +11,7 @@ class ListItemCheckboxWidget extends StatefulWidget {
|
||||
required this.label,
|
||||
required this.value,
|
||||
required this.onChanged,
|
||||
this.subtitleColor,
|
||||
this.onTap,
|
||||
this.isFirstInSection = false,
|
||||
this.isLastInSection = false, this.subtitle, this.iconPath, this.showArrow = false,
|
||||
@@ -22,6 +23,7 @@ class ListItemCheckboxWidget extends StatefulWidget {
|
||||
final String? iconPath;
|
||||
final bool showArrow;
|
||||
final bool value;
|
||||
final Color? subtitleColor;
|
||||
final VoidCallback? onTap;
|
||||
final ValueChanged<bool> onChanged;
|
||||
final bool isFirstInSection;
|
||||
@@ -81,7 +83,7 @@ class _ListItemCheckboxWidgetState extends State<ListItemCheckboxWidget> {
|
||||
Text(
|
||||
widget.subtitle!,
|
||||
style: TextStyle(
|
||||
fontSize: 12, color: Theme.of(context).colorScheme.onSurfaceVariant),
|
||||
fontSize: 12, color: widget.subtitleColor ?? Theme.of(context).colorScheme.onSurfaceVariant),
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
@@ -133,6 +133,7 @@ class NewListSections extends StatelessWidget {
|
||||
label: item.label,
|
||||
subtitle: item.subtitle,
|
||||
iconPath: item.iconPath,
|
||||
subtitleColor: item.subtitleColor,
|
||||
showArrow: item.showArrow,
|
||||
onTap: item.onTap,
|
||||
value: item.value,
|
||||
|
||||
Reference in New Issue
Block a user