Created
July 24, 2019 10:33
-
-
Save shishirthedev/5a9620378dc2250c1b8b0120b30148d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/foundation.dart' show TargetPlatform; | |
//... | |
if(Theme.of(context).platform == TargetPlatform.android) | |
//do sth for Android | |
else if(Theme.of(context).platform == TargetPlatform.iOS) | |
//do sth else for iOS | |
else if(Theme.of(context).platform == TargetPlatform.fuchsia) | |
//even do sth else for Fuchsia OS | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment