master #81
@ -15,8 +15,12 @@
|
|||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart';
|
||||||
|
|
||||||
class LinearGradientHelper {
|
class LinearGradientHelper {
|
||||||
static LinearGradient? fromNullableColors(List<Color>? colors) =>
|
static LinearGradient? fromNullableColors(List<Color>? colors) =>
|
||||||
colors != null ? LinearGradient(colors: colors) : null;
|
colors != null ? LinearGradient(colors: colors) : null;
|
||||||
|
|
||||||
|
static LinearGradient? fromMultiColor(MultiColor multiColor) =>
|
||||||
|
multiColor.isGradient ? LinearGradient(colors: multiColor.colors) : null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user