Flutter : 期待通りの白と透明のグラデーション(white and transparent gradient)

 

最近はまったポイントを共有させていただきます。

I would like to share a point that I have been stuck on recently.

 

白と透明のグラデーションが欲しかったので下記のように書いたら明らかにグレイが混ざって、期待と違うものになりました。

I wanted a gradation of white and transparent, so when I wrote the following, gray was clearly mixed, and it turned out

2022/12/18/Flutter/Rowでオーバーフローする時の対処法

 

Rowの子の幅が大きかったりすると画面幅、window幅をはみ出してオーバーフローしてしまいます。

If the width of the child of Row is large, it will overflow the screen width and window width.

 

そういう時の対処法をいくつか考えてみましょう。

Let’s consider some ways to deal with this.


スタート地点

starting point

//Rowでオーバーフローする場合の対処法0。まずスタート地点。
import 'package:flutter/material.dart';

void main() {