bug on peer platform for mac os

This commit is contained in:
open-trade 2020-11-25 20:39:08 +08:00
parent ad9788681b
commit d75cdb7811

View File

@ -144,7 +144,7 @@ class _HomePageState extends State<HomePage> {
Widget getPlatformImage(String platform) { Widget getPlatformImage(String platform) {
platform = platform.toLowerCase(); platform = platform.toLowerCase();
if (platform == 'osx') if (platform == 'mac os')
platform = 'mac'; platform = 'mac';
else if (platform != 'linux') platform = 'win'; else if (platform != 'linux') platform = 'win';
return Image.asset('assets/$platform.png', width: 36, height: 36); return Image.asset('assets/$platform.png', width: 36, height: 36);