Skip to content
pubscout

flterm

0.0.6, released 4 weeks ago by an unverified publisher

Flutter terminal widget backed by Ghostty's libghostty-vt engine.

WASM-readyUses material_ui
$ flutter pub add flterm
Source repository

What it does

Provides a Flutter terminal widget and controller powered by Ghostty's libghostty-vt engine. It adapts to host platforms for mouse, keyboard, touch, and soft keyboards, offering features like selection, copy/paste, customizable themes, and hyperlinks.

AI-written summary of version 0.0.6, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to embed a fully-featured terminal emulator inside a Flutter cross-platform app.
  • You want support for wide characters, themes, and selection matching top-tier terminal standards.

Skip it when

  • You require an alternative terminal implementation that does not depend on native/wasm Ghostty binaries.

Strengths

  • Built on top of Ghostty's robust libghostty-vt terminal engine.
  • Cross-platform support including mobile, desktop, and web.
  • Extensive feature set including search, touch selection handles, snapshots, and customizable color themes.

Weaknesses

  • Requires platform-specific setup or web wasm initialization before use.
  • Idle link styling and custom rules scanning can impact performance if overused.

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
5

On web, you must initialize the wasm module once before mounting any terminal using initializeForWeb.

import 'package:flterm/flterm.dart';

final controller = TerminalController()
  ..onOutput = (bytes) => pty.write(bytes)
  ..onResize = (cols, rows) => pty.resize(cols, rows);

TerminalView(
  controller: controller,
  theme: TerminalTheme.dark(),
);

Alternatives

Packages that do the same job and could replace flterm.

  • xterm

    A fast and fully-featured terminal emulator widget for Flutter applications.

Works with

Packages commonly used together with flterm: ones it builds on, ones built on it, and its own family.