Quantcast
Channel: User mikyll98 - Stack Overflow
Viewing all articles
Browse latest Browse all 102

Flutter: ElevatedButton has different theme on Linux

$
0
0

Problem

I have a Flutter application that uses an ElevatedButton widget.
When I run the application on Windows the button colors are fine, but when I run it on Linux, they are different.

Here's my code :

ElevatedButton(    onPressed: () {        // ...    },    child: Container(        alignment: Alignment.center,        height: 60,        child: const Text("Avvia",            style: TextStyle(                fontSize: 26,                fontWeight: FontWeight.bold,            ),        ),    ),),

Result

On Windows:

enter image description here

On Linux (Kali Linux on WSL):

enter image description here


Does anybody know why it happens and how can I fix it?


Viewing all articles
Browse latest Browse all 102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>