最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

mobile - LinearGradient Error In AudioWaveforms Flutter - Stack Overflow

programmeradmin3浏览0评论

I tried a lot to do an audio dynamic waves and after found the solution (from my mind view) in this code, the LinearGradient show error lines why ....?

          AudioWaveforms(
            size: Size(double.infinity, 100),
            recorderController: recorderController,
            waveStyle: WaveStyle(
 
              gradient: LinearGradient(
                colors: [Colors.blue, Colors.blueAccent],
                begin: Alignment.topCenter,   
                end: Alignment.bottomCenter, 
              ),
              spacing: 15.0,
              scaleFactor: 0.7, 
              
              showDurationLabel: true,
              durationStyle: TextStyle(
                fontSize: 12,
              ),
              showBottom: true,
            ),
          ),
发布评论

评论列表(0)

  1. 暂无评论