Closed
Description
Steps to reproduce
- Create a Container with a linear gradient in a BoxDecoration (not contrasted)
- Run it on different platforms
Expected results
Supposed to be smooth on each platform.
Example :
Actual results
On Android, iOS, Windows, it looks smooth.
On the web, it shows visible steps.
Code sample
Code sample
Container(
decoration: BoxDecoration(
gradient : LinearGradient(
colors: const [
Color(0xff324958),
Color(0xff26323a),
],
begin: Alignment.bottomLeft,
end: Alignment.topRight
)
),
//child: ...
)
Screenshots or Video
Logs
No response
Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.29.3, on Microsoft Windows [version 10.0.26100.3915], locale fr-FR)
[√] Windows Version (11 Professionnel 64-bit, 24H2, 2009)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.12.3)
[√] Android Studio (version 2024.3.2)
[√] IntelliJ IDEA Community Edition (version 2025.1)
[√] VS Code (version 1.96.4)
[√] Connected device (2 available)
[√] Network resources