-
Notifications
You must be signed in to change notification settings - Fork 5
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 #79 from victoreronmosele/state-history
Implement State History (Undo, Redo, Version History)
- Loading branch information
Showing
31 changed files
with
1,017 additions
and
378 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
extensions: | ||
- provider: true |
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 |
---|---|---|
@@ -1,17 +1,25 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_gradient_generator/models/abstract_gradient.dart'; | ||
|
||
/// [Stop] is an integer representing a Gradient color stop. | ||
/// An integer representing a Gradient color stop. | ||
/// | ||
/// It is a value between 0 and 100. | ||
typedef Stop = int; | ||
|
||
/// [ColorAndStop] is a record that holds a [Color] and a [Stop]. | ||
/// A record that holds a [Color] and a [Stop]. | ||
typedef ColorAndStop = ({ | ||
Color color, | ||
Stop stop, | ||
}); | ||
|
||
/// [FlutterGradientConverter] is a function that converts [colors] and optional | ||
/// A function that converts [colors] and optional | ||
/// [stops] to a [Gradient] from Flutter's painting library. | ||
typedef FlutterGradientConverter = Gradient Function( | ||
{required List<Color> colors, List<double>? stops}); | ||
|
||
/// A record that holds a [Gradient] and a [DateTime] timestamp when the | ||
/// gradient was generated. | ||
typedef TimeStampedGradient = ({ | ||
AbstractGradient gradient, | ||
DateTime timeStamp, | ||
}); |
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
Oops, something went wrong.