google_nav_bar icon indicating copy to clipboard operation
google_nav_bar copied to clipboard

Solve the “A RenderFlex overflowed” problem caused by the internationalization of the flutter.

Open sedrac-slc opened this issue 5 months ago • 1 comments

Description I've recently been working on an internationalization project to support the Russian language, Portuguese. The words in Russian are longer as shown in the image and cause the error “A RenderFlex overflowed”.

The problem with the image

Image

Message error The following assertion was thrown during layout: A RenderFlex overflowed by 66 pixels on the right.

The relevant error-causing widget was: Row Row:file:///C:/Users/example/AppData/Local/Pub/Cache/hosted/pub.dev/google_nav_bar-5.0.7/lib/src/gnav.dart:94:16 The overflowing RenderFlex has an orientation of Axis.horizontal. The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and black striped pattern. This is usually caused by the contents being too big for the RenderFlex.

sedrac-slc avatar Jul 18 '25 14:07 sedrac-slc

using FittedBox( child: GNav) works https://github.com/sooxt98/google_nav_bar/issues/88

AnthonyDreams avatar Aug 04 '25 01:08 AnthonyDreams