diff --git a/packages/wyatt_ui_kit/lib/src/core/helpers/linear_gradient_helper.dart b/packages/wyatt_ui_kit/lib/src/core/helpers/linear_gradient_helper.dart index 7e3af2cd..e102ba2e 100644 --- a/packages/wyatt_ui_kit/lib/src/core/helpers/linear_gradient_helper.dart +++ b/packages/wyatt_ui_kit/lib/src/core/helpers/linear_gradient_helper.dart @@ -15,8 +15,12 @@ // along with this program. If not, see . import 'package:flutter/material.dart'; +import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart'; class LinearGradientHelper { static LinearGradient? fromNullableColors(List? colors) => colors != null ? LinearGradient(colors: colors) : null; + + static LinearGradient? fromMultiColor(MultiColor multiColor) => + multiColor.isGradient ? LinearGradient(colors: multiColor.colors) : null; }