'How do I generate smaller Triangle indicator when using flutter_fortune_wheel
I am developing a simple application that spins a fortune wheel based on Flutter_Fortune_Wheel. So far everything works as expected except I have kept the size of the wheel small to accomodate other screen assets and the TriangleIndicator size is too large. How do I specify a smaller sized TriangleIndicator?
Applicable code follows:
FortuneWheel(
animateFirst: false,
onAnimationEnd: () {
widget.callback(wheelContents[letterInt]);
if (wheelContents.length > 1) {
wheelContents.removeAt(letterInt);
} else {
print('***** Puzzle Solved!*****');
}
},
selected: selected.stream,
indicators: const <FortuneIndicator>[
FortuneIndicator(
alignment: Alignment
.topCenter, // <-- changing the position of the indicator
child: TriangleIndicator(
color:
Colors.amber, // <-- changing the color of the indicator
),
),
],
items: [
for (var ltr in wheelContents) FortuneItem(child: Text(ltr)),
],
),
TIA
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
