• Stars
    star
    157
  • Rank 238,399 (Top 5 %)
  • Language
    Dart
  • License
    Apache License 2.0
  • Created over 8 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A web framework for Dart based on Flutter's widget model

Butterfly

WARNING: This is highly experimental

DISCLAIMER: This is a personal project. This is not an official Google product.

What is Butterfly?

A web framework heavily inspired by Flutter.

The goal of the project is conceptual and language compatibility with Flutter. An explicit non-goal is "write once, run anywhere". Butterfly intentionally shares no code with Flutter. However, because of the same language and framework architecture, many of the skills, tools, libraries and platform-independent code can be shared with Flutter apps.

What's included?

  • A widget system almost identical to that of Flutter
  • Flutter-like development mode:
    • Debug code inside your IDE
    • Hot-reload!

Who is Butterfly for?

  • For app developers who build mobile apps using Flutter, and who also need to build web apps. Butterfly gives you a single conceptual model for writing your apps for both web and mobile, and allows the reuse of big chunks of code.
  • For Flutter developers who need to run parts of their app within a WebView.
  • For Dart developers who prefer functional-reactive programming style.

Plays nice with

  • Flutter - source of inspiration
  • Greencat - Redux for Dart
  • RxDart - reactive extensions for Dart
  • TODO: Custom elements - Butterfly does not include dart:html. If you need to drop down below the framework and access the DOM API directly, consider using custom elements.