-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from kevlatus/dev
Dev
- Loading branch information
Showing
24 changed files
with
724 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
part of 'core.dart'; | ||
|
||
/// The type of animation, which is used when the value of | ||
/// [FortuneWidget.selected] changes. | ||
enum FortuneAnimation { | ||
/// Animate to the [FortuneWidget.selected] item using a spinning animation. | ||
Spin, | ||
// TODO: Move, | ||
/// Directly show the [FortuneWidget.selected] item without animating. | ||
None, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_fortune_wheel/src/bar/bar.dart'; | ||
import 'package:flutter_fortune_wheel/src/indicators/indicators.dart'; | ||
import 'package:flutter_fortune_wheel/src/wheel/wheel.dart'; | ||
import 'package:quiver/core.dart'; | ||
|
||
part 'animations.dart'; | ||
|
||
part 'fortune_item.dart'; | ||
|
||
part 'fortune_widget.dart'; | ||
|
||
part 'styling.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
part of 'core.dart'; | ||
|
||
/// A [FortuneItem] represents a value, which is chosen during a selection | ||
/// process and displayed within a [FortuneWidget]. | ||
/// | ||
/// See also: | ||
/// * [FortuneWidget] | ||
@immutable | ||
class FortuneItem { | ||
final FortuneItemStyle style; | ||
|
||
/// A widget to be rendered within this item. | ||
final Widget child; | ||
|
||
const FortuneItem({ | ||
this.style, | ||
@required this.child, | ||
}) : assert(child != null); | ||
|
||
@override | ||
int get hashCode => hash2(child, style); | ||
|
||
@override | ||
bool operator ==(Object other) { | ||
return other is FortuneItem && style == other.style && child == other.child; | ||
} | ||
} |
Oops, something went wrong.