Created
January 18, 2021 20:57
-
-
Save rondinellimorais/44af36f88c8462a051334800d232cf15 to your computer and use it in GitHub Desktop.
bridge_flutter.dart
This file contains 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/services.dart'; | |
class HomeState extends State<Home> { | |
static const platform = const MethodChannel('magicgathering/bridge'); | |
void startUnityActivity() async { | |
Map<String, dynamic> parameters = { | |
'cardBase64Image': inViewPortBase64, | |
'cardsBase64Image': _cardsBase64Image | |
}; | |
platform.invokeMethod('startUnityActivity', parameters); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment