界面整合v2

This commit is contained in:
toly
2023-05-14 20:55:26 +08:00
parent 6b43f59e1e
commit 709bdcc9e5
4 changed files with 27 additions and 15 deletions

View File

@@ -16,7 +16,12 @@ class Paper extends StatefulWidget {
State<Paper> createState() => _PaperState();
}
class _PaperState extends State<Paper> {
class _PaperState extends State<Paper> with AutomaticKeepAliveClientMixin {
@override
bool get wantKeepAlive => true;
List<Line> _lines = []; // 线列表
int _activeColorIndex = 0; // 颜色激活索引