dart_pad_widget 1.0.1+2 copy "dart_pad_widget: ^1.0.1+2" to clipboard
dart_pad_widget: ^1.0.1+2 copied to clipboard

outdated

A new Flutter package project.

DartPad Flutter Web Plugin #

A new Flutter package that allows you to easily embed DartPad into your Flutter Web application.

import 'package:flutter/material.dart';
import 'package:dart_pad_widget/dart_pad_widget.dart';

void main() {
  runApp(
    MaterialApp(
      home: Scaffold(
        body: SingleChildScrollView(
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.center,
              children: [
                DartPad(
                  key: Key('example1'),
                  width: 500,
                  height: 400,
                  code: 'void main() => print("Hello DartPad Widget");',
                ),
              ],
            ),
          ),
        ),
      ),
    );

Live Demo

Some code was borrowed from the dart-lang/dart-pad repository. Credit for that goes to them.

It should support most of the features listed in the dartpad embedding guide

Contributions welcome

Example

17
likes
30
points
32
downloads

Publisher

verified publishertimwhiting.dev

Weekly Downloads

A new Flutter package project.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter, html_unescape

More

Packages that depend on dart_pad_widget