Install and use Flutter Fortune Wheel
mainTo use the package, install it via pub.dev. You can then use the FortuneWheel widget to create a circular wheel of fortune. It requires a Stream<int> for the selected property to control the animation and a list of FortuneItem objects for the content.
import 'package:flutter/material.dart';
import 'package:flutter_fortune_wheel/flutter_fortune_wheel.dart';
StreamController<int> controller = StreamController<int>();
FortuneWheel(
selected: controller.stream,
items: [
FortuneItem(child: Text('Han Solo')),
FortuneItem(child: Text('Yoda')),
FortuneItem(child: Text('Obi-Wan Kenobi')),
],
)