Search packages, repositories and app categories

Package detailsv0.0.3

flutter_dartpad

A Dartpad widget which can be embed with mobile application. It supports all the designs provided in dartpad embedding guide.

AndroidiOSmacOS
30-day downloads
64
Likes
22
Pub points
160

Install package

flutter pub add flutter_dartpad

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter widget that embeds a DartPad editor directly into mobile applications, enabling users to write, run, and test Dart code in real time. It supports all design configurations outlined in the official DartPad embedding guide, ensuring consistent appearance across apps. Ideal for educational apps, coding tutorials, or interactive development tools. The widget is compatible with Android, iOS, and macOS, offering a seamless experience on all platforms.

Use cases

  • Interactive coding tutorials
  • Real-time code testing in apps
  • Educational Flutter applications
  • Developer documentation demos
  • Code sharing and collaboration

Key features

  • Embeddable DartPad editor
  • Supports full DartPad styling
  • Cross-platform compatibility
  • Live code execution
  • Customizable UI themes
  • Responsive design

Suitable for

  • Educational app developers
  • Flutter learning platforms
  • Code demonstration tools
  • Interactive documentation sites
  • Mobile IDE prototypes

Considerations

  • Requires internet access for code execution
  • May impact performance on low-end devices
  • Limited to Dart code only
  • Not suitable for production code deployment
  • UI customization requires familiarity with DartPad guidelines

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.