ExampleTerminalApp class
Reference consumer of the flutter_alacritty library API.
Wires FlutterPtyBackend to TerminalEngine + TerminalController and
renders TerminalView with the screen-level surface a real terminal needs:
restart overlay on shell exit, search bar (Ctrl+Shift+F), drag-and-drop
of file paths as bracketed-paste, right-click context menu with
Copy/Paste/Search and hyperlink open, and url_launcher for clicked links.
Owns its own MaterialApp so callers can do runApp(ExampleTerminalApp())
without an additional wrapper. The title notifier is optional — if not
supplied, an internal one is created and mirrors engine.title.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ExampleTerminalApp
Constructors
-
ExampleTerminalApp({ValueNotifier<
String> ? title, PtyFactory? ptyFactory, EngineFactory? engineFactory, TerminalConfig? config, Stream<TerminalConfig> ? configUpdates, UrlLauncher? launchUrl, Key? key}) -
const
Properties
- config → TerminalConfig?
-
final
-
configUpdates
→ Stream<
TerminalConfig> ? -
final
- engineFactory → EngineFactory?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- launchUrl → UrlLauncher?
-
final
- ptyFactory → PtyFactory?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
title
→ ValueNotifier<
String> ? -
Optional external title notifier. When null the example creates and
owns its own (and disposes it). Pass one when the host wants to observe
title changes (e.g. for window decorations or tests).
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ExampleTerminalApp> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited