String result;
result = await methodChannel.invokeMethod(‘PlayAlbumVideo’, params);
String playID = params[‘playID’];
String duration = params[‘duration’];
String name = params[‘name’];
showCupertinoDialog(context: context, builder: (BuildContext context){
return CupertinoAlertDialog(
title: Text(result),
content: Text(‘name: n a m e p l a y I D : name playID: nameplayID:playID duration:$duration’),
actions: [
FlatButton(
child: Text(‘确定’),
onPressed: (){
Navigator.pop(context);
},
)
],
);
});
}
NSString *channelName = @“flutterChannelName”;
FlutterMethodChannel *methodChannel = [FlutterMethodChannel methodChannelWithName:channelName binaryMessenger