v0.0.3
flutter_dartpad
모바일 애플리케이션에 삽입할 수 있는 Dartpad 위젯입니다. Dartpad 임베딩 가이드에서 제공하는 모든 디자인을 지원합니다.
22좋아요 3930일 다운로드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