v0.0.3
flutter_dartpad
一个可嵌入移动应用的 Dartpad 小部件。它支持 Dartpad 嵌入指南中提供的所有设计。
22喜欢 39近 30 天下载160Pub 分数
AndroidiOSmacOS
可以在移动应用程序中使用的 Dartpad
{"sdk":"flutter"}^4.0.6{"sdk":"flutter"}^2.0.0以下为英文项目原文快照,最新内容请访问 GitHub。
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,
),
),
),
);
}
Following are the embedding choices:
EmbeddingChoice.dart
Dart Embedding
EmbeddingChoice.flutterShowcase
Flutter Showcase Embedding
EmbeddingChoice.flutter
Flutter Embedding
EmbeddingChoice.html
HTML Embedding
EmbeddingChoice.inline
Inline Embedding
Inspired to make this package and some code was borrowed from dart_pad_widget