-
-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
When we are using EvalWidget, we are creating new package with libraries, right? Is it possible to add some 3rd party package as dependency and then import a library from included package?
Using example from docs, I'd like to achieve this:
EvalWidget(
packages: const {
'example': {
'main.dart': '''
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
class MyWidget extends StatelessWidget {
MyWidget();
@override
Widget build(BuildContext context) {
return TextButton(
child: Text('Click me '),
onPressed: () {
launchUrl(
Uri.parse(
"https://google.com",
),
);
},
);
}
}
''',
}
},
assetPath: 'assets/program.evc',
library: 'package:example/main.dart',
function: 'MyWidget.',
args: [],
);Metadata
Metadata
Assignees
Labels
No labels