flutter_fortune_wheel
flutter-go
flutter_fortune_wheel | flutter-go | |
---|---|---|
2 | 1 | |
99 | 23,570 | |
- | 0.1% | |
6.9 | 0.0 | |
3 months ago | 5 months ago | |
Dart | Dart | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
flutter_fortune_wheel
-
How to build advanced layouts in Flutter
We want to position the child widget on the line, which cuts a given slice in half. To achieve that, we start of with a vector that points to the center of the top edge of our bounding box starting from its top left. This ensures that the vector's length is half the circle's radius. To actually point to the center of our slice, we need to rotate this vector by half the slice's angle, which gives us the blue vector in above illustration.. If you are interested in how the rotateVector works, you can find its implementation in this package's Github repository. With the slice's center at hand, the child's offset can be retrieved by adjusting the center to the child's size. If you believe there is a simpler way to achieve the same result, I encourage you to send me a message or comment with your ideas about this problem; I am always glad to learn of new features and tricks.
-
Making-of: Flutter Fortune Wheel
Great! We are now able to draw a circle composed of any number of individually customizable slices. In my next article we will implement a MultiChildLayoutDelegate to correctly position child widgets within the slices. In the meantime, if you don't want to wait for the next article, you can find the package's code on Github.
flutter-go
What are some alternatives?
flutter-fortune-wheel - Flutter Fortune Wheel
dartz - Functional programming in Dart
awesome-flutter - An awesome list that curates the best Flutter libraries, tools, tutorials, articles and more.
beamer - A routing package built on top of Router and Navigator's pages API, supporting arbitrary nested navigation, guards and more.
bloc - A predictable state management library that helps implement the BLoC design pattern
esc_pos_printer - ESC/POS (thermal, receipt) printing for Flutter & Dart
flutter_architecture_samples - TodoMVC for Flutter
melos - 🌋 A tool for managing Dart projects with multiple packages. With IntelliJ and Vscode IDE support. Supports automated versioning, changelogs & publishing via Conventional Commits.
manim-web - Manim animation engine, for the web
go-flutter - Flutter on Windows, MacOS and Linux - based on Flutter Embedding, Go and GLFW.
libusb.dart - Dart wrapper via dart:ffi for https://github.com/libusb/libusb
fluent_ui - Implements Microsoft's WinUI3 in Flutter.