flutter_weather_icons icon indicating copy to clipboard operation
flutter_weather_icons copied to clipboard

BUG: weather Icon is displayed with an offset

Open komape opened this issue 4 years ago • 0 comments

The weather icon is displayed with an offset to the bottom compared to other icons. Here is a screenshot of what I mean:

image

From top to bottom the icons are:

  • Icons.timer
  • MdiIcons.mapMarkerDistance
  • MdiIcons.speedometer
  • WeatherIcons.wiDust

As you can see, only the weather icon causes problems. Here is a screenshot with the Dart dev tools:

image

With WeatherIcons.wiSmog it gets even more clear that is placed wrong:

image

The icon is embedded as follows:

// child of a container
child: Row(
  mainAxisAlignment: MainAxisAlignment.spaceBetween,
  children: <Widget>[
    Row(
      children: <Widget>[
        Icon(icon, size: 36),
        SizedBox(width: 12),
        Text(textRight, style: TextStyle(fontSize: 18)),
      ],
    ),
    Text(textLeft, style: TextStyle(fontSize: 18))
  ],
),

komape avatar Jul 07 '20 15:07 komape