Answers for "how do i get the current width of the container in flutter"

3

flutter container width of parent

width: double.infinity,
  height: double.infinity
Posted by: Guest on January-11-2021
0

container fixed width flutter

FractionalTranslation(
    translation: Offset(0, 0),
        child: Container(
        width: 100,
        height: 100,
        child: SizedBox(
            height:  1,
            width: 1,
            child: const ColoredBox(color: Colors.amber),
        )
    ),
),
Posted by: Guest on August-19-2021

Code answers related to "how do i get the current width of the container in flutter"

Browse Popular Code Answers by Language