Last updated:
0 purchases
flutter dartpad
A dart pad which can be easily embedded to mobile application with the help of web view.
Supports all the features listed in dart pad embedding guide
NOTE: Performance won't be great as it is working on web view.
import 'package:flutter/material.dart';
import 'package:flutter_dartpad/flutter_dartpad.dart';
void main() {
runApp(
MaterialApp(
home: Scaffold(
body: DartPad(
code: 'void main() => print("Hello DartPad Widget");',
embeddingChoice: EmbeddingChoice.dart,
),
),
),
);
}
copied to clipboard
Following are the embedding choices:
EmbeddingChoice.dart
copied to clipboard
EmbeddingChoice.flutterShowcase
copied to clipboard
EmbeddingChoice.flutter
copied to clipboard
EmbeddingChoice.html
copied to clipboard
EmbeddingChoice.inline
copied to clipboard
Inspired to make this package and some code was borrowed from dart_pad_widget
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.