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
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.
Works with
Packages commonly used together with flterm: ones it builds on, ones built on it, and its own family.
- imageflterm depends on itPure Dart library to load, manipulate, encode, and decode various image formats.
- material_uiflterm depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- cupertino_uiflterm depends on itOfficial Flutter Cupertino design library implementing Apple HIG iOS and macOS user interfaces.