flame-engine / flame-engine/flame

improvement: Update TextBoxComponent to use Snapshot mixin

Open
#2,724 0 comments 0 reactions 1 assignee Claimed by @projectitis View on GitHub
enhancement
Dominant language
Dart
Stars
10.8k
Forks
1k
Avg merge
1d 20h
Merged PRs (30d)
21

Description

# What could be improved

Update `TextBoxComponent` to use the `Snapshot` mixin.

# Why should this be improved

It would simplify the `TextBoxComponent` code and re-use 'caching' code (maintaining caching code in one place).

# Any risks?

`Snapshot` is new. Worst case is that we need to further improve Snapshot if it initially fails for the `TextBoxComponent` for any reason.

# More information

See #2695

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.