dartblock_code 1.0.0 copy "dartblock_code: ^1.0.0" to clipboard
dartblock_code: ^1.0.0 copied to clipboard

Block-based programming framework

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dartblock_code

With Flutter:

 $ flutter pub add dartblock_code

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dartblock_code: ^1.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:dartblock_code/core/dartblock_executor.dart';
import 'package:dartblock_code/core/dartblock_program.dart';
import 'package:dartblock_code/core/dartblock_program.g.dart';
import 'package:dartblock_code/dartblock.dart';
import 'package:dartblock_code/models/dartblock_interaction.dart';
import 'package:dartblock_code/models/dartblock_interaction.g.dart';
import 'package:dartblock_code/models/dartblock_notification.dart';
import 'package:dartblock_code/models/dartblock_validator.dart';
import 'package:dartblock_code/models/dartblock_value.dart';
import 'package:dartblock_code/models/dartblock_value.g.dart';
import 'package:dartblock_code/models/environment.dart';
import 'package:dartblock_code/models/evaluator.dart';
import 'package:dartblock_code/models/evaluator.g.dart';
import 'package:dartblock_code/models/exception.dart';
import 'package:dartblock_code/models/exception.g.dart';
import 'package:dartblock_code/models/function.dart';
import 'package:dartblock_code/models/function.g.dart';
import 'package:dartblock_code/models/help.dart';
import 'package:dartblock_code/models/statement.dart';
import 'package:dartblock_code/models/statement.g.dart';
import 'package:dartblock_code/widgets/dartblock_editor.dart';
import 'package:dartblock_code/widgets/dartblock_value_widgets.dart';
import 'package:dartblock_code/widgets/editors/composers/boolean_value.dart';
import 'package:dartblock_code/widgets/editors/composers/components/algebraic_digit_button.dart';
import 'package:dartblock_code/widgets/editors/composers/components/algebraic_dot_button.dart';
import 'package:dartblock_code/widgets/editors/composers/components/algebraic_operator_button.dart';
import 'package:dartblock_code/widgets/editors/composers/dartblock_value.dart';
import 'package:dartblock_code/widgets/editors/composers/number_value.dart';
import 'package:dartblock_code/widgets/editors/composers/string_value.dart';
import 'package:dartblock_code/widgets/editors/composers/value_concatenation.dart';
import 'package:dartblock_code/widgets/editors/custom_function_basic.dart';
import 'package:dartblock_code/widgets/editors/dartblock_data_type_picker.dart';
import 'package:dartblock_code/widgets/editors/for_loop.dart';
import 'package:dartblock_code/widgets/editors/function_call.dart';
import 'package:dartblock_code/widgets/editors/if_else_then.dart';
import 'package:dartblock_code/widgets/editors/misc.dart';
import 'package:dartblock_code/widgets/editors/print.dart';
import 'package:dartblock_code/widgets/editors/return.dart';
import 'package:dartblock_code/widgets/editors/statement.dart';
import 'package:dartblock_code/widgets/editors/variable_assignment.dart';
import 'package:dartblock_code/widgets/editors/variable_declaration.dart';
import 'package:dartblock_code/widgets/editors/variable_definition.dart';
import 'package:dartblock_code/widgets/editors/while_loop.dart';
import 'package:dartblock_code/widgets/evaluator_editor.dart';
import 'package:dartblock_code/widgets/helper_widgets.dart';
import 'package:dartblock_code/widgets/views/custom_function.dart';
import 'package:dartblock_code/widgets/views/evaluation/evaluation_widget.dart';
import 'package:dartblock_code/widgets/views/for_loop.dart';
import 'package:dartblock_code/widgets/views/function_call.dart';
import 'package:dartblock_code/widgets/views/function_definition.dart';
import 'package:dartblock_code/widgets/views/if_else_then.dart';
import 'package:dartblock_code/widgets/views/other/dartblock_colors.dart';
import 'package:dartblock_code/widgets/views/other/dartblock_console.dart';
import 'package:dartblock_code/widgets/views/other/dartblock_exception.dart';
import 'package:dartblock_code/widgets/views/other/help_center.dart';
import 'package:dartblock_code/widgets/views/statement.dart';
import 'package:dartblock_code/widgets/views/statement_listview.dart';
import 'package:dartblock_code/widgets/views/symbols.dart';
import 'package:dartblock_code/widgets/views/toolbox_related.dart';
import 'package:dartblock_code/widgets/views/variable_assignment.dart';
import 'package:dartblock_code/widgets/views/variable_declaration.dart';
import 'package:dartblock_code/widgets/views/variable_definition.dart';
import 'package:dartblock_code/widgets/views/while_loop.dart';
import 'package:dartblock_code/widgets/widgets.dart';