@@ -8,6 +8,8 @@ import 'package:flutter_folio/views/editor_page/scrap_popup_editor/animated_menu
8
8
import 'package:flutter_folio/views/editor_page/scrap_popup_editor/scrap_popup_editor.dart' ;
9
9
10
10
class PopupPanelSpike extends StatefulWidget {
11
+ const PopupPanelSpike ({Key ? key}) : super (key: key);
12
+
11
13
@override
12
14
_PopupPanelSpikeState createState () => _PopupPanelSpikeState ();
13
15
}
@@ -30,7 +32,7 @@ class _PopupPanelSpikeState extends State<PopupPanelSpike> {
30
32
//Positioned(child: ControlPanel(), left: 100, top: 100),
31
33
32
34
Transform .translate (
33
- offset: Offset (100 , 50 ),
35
+ offset: const Offset (100 , 50 ),
34
36
//child: _ExamplePopupPanel(),
35
37
child: ScrapPopupEditor (
36
38
onRotChanged: (value) {
@@ -69,7 +71,6 @@ class _ExamplePopupPanelState extends State<_ExamplePopupPanel> {
69
71
childBuilder: childBuilder);
70
72
}
71
73
72
- ;
73
74
timeDilation = 1 ;
74
75
double row1Height = 60 ;
75
76
double row2Height = 40 ;
@@ -96,15 +97,15 @@ class _ExamplePopupPanelState extends State<_ExamplePopupPanel> {
96
97
..._sortChildrenWithSelectedOnTop ([
97
98
/// TOP ROW
98
99
animatedPanel (
99
- Offset (0 , 0 ), // Pos(row: 0, item: 0)
100
+ const Offset (0 , 0 ), // Pos(row: 0, item: 0)
100
101
Size (150 , row1Height),
101
102
index: 0 ,
102
103
openHeight: 100 ,
103
104
childBuilder: (bool isOpen) => Content ("CONTROL-1" , Colors .green, isOpen: isOpen),
104
105
),
105
106
106
107
animatedPanel (
107
- Offset (150 , 0 ), // Pos(row: 0, item: 1)
108
+ const Offset (150 , 0 ), // Pos(row: 0, item: 1)
108
109
Size (150 , row1Height),
109
110
index: 1 ,
110
111
openHeight: 100 ,
@@ -163,7 +164,7 @@ class Content extends StatelessWidget {
163
164
key: ValueKey (isOpen),
164
165
child: Stack (fit: StackFit .expand, children: [
165
166
if (isOpen == false ) Text (lbl),
166
- if (isOpen) Center (child: Text (lbl, style: TextStyle (fontSize: 32 )))
167
+ if (isOpen) Center (child: Text (lbl, style: const TextStyle (fontSize: 32 )))
167
168
]),
168
169
),
169
170
);
0 commit comments