return Scaffold(
body: Container(
decoration: const BoxDecoration(
gradient: LinearGradient(
colors: [
Color.fromRGBO(113, 250, 202, 1),
Color.fromRGBO(60, 79, 118, 1),
],
stops: [.30, .85],
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
),
),
child: Column(
children: [
const SizedBox(
height: 170,
),
Expanded(
child: listManager.rewardsList.isNotEmpty && spinWheel
? Padding(
padding: const EdgeInsets.only(top: 100),
child: FortuneBar(
styleStrategy: const AlternatingStyleStrategy(),
selected: StreamController<int>.broadcast().stream,
items: [
for (var reward in listManager.rewardsList)
FortuneItem(
child: Text(reward),
),
],
))
: const Center(
child: Text(
'Please enter 2 or more Rewards',
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
color: Color.fromARGB(255, 2, 4, 133),
),
),
),
),
const Padding(
padding: EdgeInsets.all(10),
),
SpinButton(
spinWheel: spinWheel,
setSpinWheel: (bool value) {
setState(() {
spinWheel = value;
});
}),
const SizedBox(height: 100),
],
),
),
);
我尝试了无数使用填充物、容器等的方法。没有什么真正有用的。任何帮助将不胜感激。谢谢!
styleStrategy: UniformStyleStrategy( 边框宽度:0, 颜色: Color.fromARGB(255, 111, 190, 255), borderColor: Color.fromARGB(255, 111, 190, 255)),