如何解决在PWA抖动内创建自定义颜色
嗨,我正在尝试从现有的flutter应用程序项目中构建PWA ...在我的flutter应用程序内部,我使用的是我在文件中定义的自定义颜色。.
import 'package:flutter/material.dart';
const first= Color(0xxxxxxxxxxxx);
const second= Color(0xxxxxxxxx);
const third= Color(0xxxxxxxx);
const vio= LinearGradient( // I get red line here
colors: <Color>[first,second,third],// from this line I get red line with note: The named parameter 'colors' isn't defined.
stops: [0.2,0.5,1.3],// same goes for this line
begin: Alignment.centerLeft,end: Alignment.centerRight,);
我正在通过将该文件添加到我的PWA项目中来进行试用,但是colors
和stops
始终无法定义...从这种情况下,我应该在其中添加一些内容我的PWA项目的web
文件夹?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。