Glider icon indicating copy to clipboard operation
Glider copied to clipboard

Updated flutter platforms

Open FaFre opened this issue 2 years ago • 7 comments

This PR adds Linux support and recreates android/ios structures, as well as the outdated metadata file.

FaFre avatar Oct 29 '23 06:10 FaFre

@Mosc all done

FaFre avatar Nov 15 '23 16:11 FaFre

@Mosc I also got web working locally. It required some minor code changes. However, the HN login doesn't work since in the browser CORS comes into game. Shall I push this changes or are you planning to not support web anyways?

FaFre avatar Nov 15 '23 16:11 FaFre

@Mosc I also got web working locally. It required some minor code changes. However, the HN login doesn't work since in the browser CORS comes into game. Shall I push this changes or are you planning to not support web anyways?

Web support is not that different from Linux support in that respect: I'm not going to use it personally and I don't have plans to officially distribute it, but if others gain value from it I don't mind having it included in the repository. As long as the effect on the code is not too invasive you should feel free to push it.

It's interesting that you mention the login functionality not working, because isn't the same true for the Linux target? Or do you mean that it fails in a different way?

Mosc avatar Nov 15 '23 19:11 Mosc

I just pushed the web support. One small dependency is required, because dart:io is not available for web.

FaFre avatar Nov 17 '23 00:11 FaFre

I have some issues with universal_io being included for a single line of code. As I understand it the if (Platform.isAndroid) wouldn't work otherwise, right? How about changing that to if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android)?

Please also add the following to flutter_launcher_icons.yaml to generate Glider favicons rather than the default Flutter one, and then run flutter pub run flutter_launcher_icons:

  web:
    generate: true

Unfortunately that tool doesn't support Linux yet! Exclude any icon changes for other platforms, those have been optimized for size.

Mosc avatar Nov 21 '23 11:11 Mosc

@Mosc I finally found some time to fix the open points :)

Linking the Linux related issue for future references: https://github.com/fluttercommunity/flutter_launcher_icons/issues/529

FaFre avatar Jan 22 '24 18:01 FaFre

Apologies for the late reply. I think the PR mostly looks good, but the changes to the existing icons should be reverted. They're larger than the current icon file sizes.

Exclude any icon changes for other platforms, those have been optimized for size.

Mosc avatar Apr 02 '24 17:04 Mosc