mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-09 17:39:42 +00:00
added keys to segmented_buttons _ButtonSegment's
This commit is contained in:
parent
40f4f8822f
commit
370186030a
|
@ -49,6 +49,7 @@ class SegmentedButtons extends StatelessWidget {
|
||||||
children: [
|
children: [
|
||||||
for (int i = 0; i < titles.length; i++)
|
for (int i = 0; i < titles.length; i++)
|
||||||
_ButtonSegment(
|
_ButtonSegment(
|
||||||
|
key: ValueKey(i),
|
||||||
isSelected: isSelected[i],
|
isSelected: isSelected[i],
|
||||||
title: titles[i],
|
title: titles[i],
|
||||||
),
|
),
|
||||||
|
@ -61,6 +62,7 @@ class _ButtonSegment extends StatelessWidget {
|
||||||
const _ButtonSegment({
|
const _ButtonSegment({
|
||||||
required this.isSelected,
|
required this.isSelected,
|
||||||
required this.title,
|
required this.title,
|
||||||
|
super.key,
|
||||||
});
|
});
|
||||||
|
|
||||||
final bool isSelected;
|
final bool isSelected;
|
||||||
|
|
Loading…
Reference in a new issue