-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team
Description
Allow us to print to Flutter's console with a FlutterViewController.print method. I am requesting this because I am not aware of any way to print to the Flutter console from within Swift on iOS.
eg
let printChannel = FlutterMethodChannel(name: "console", binaryMessenger: controller.binaryMessenger);
printChannel.invokeMethod("print", arguments: "1printyboiiiiiiiI!!!")void main() {
MethodChannel("console").setMethodCallHandler((call) {
if (call.method == "print") {
print(call.arguments);
}
return;
});
runApp(_MyApp());
}flutter: 1printyboiiiiiiiI!!!
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-iosiOS applications specificallyiOS applications specificallyteam-iosOwned by iOS platform teamOwned by iOS platform teamtriaged-iosTriaged by iOS platform teamTriaged by iOS platform team