dart_pad_widget

Creator: coderz1093

Last updated:

0 purchases

dart_pad_widget Image
dart_pad_widget Images

Languages

Categories

Add to Cart

Description:

dart pad widget

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");',
),
],
),
),
),
),
);
copied to clipboard
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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.