@@ -69,49 +69,50 @@ class DemoPage extends StatelessWidget {
6969 ),
7070 ),
7171 ),
72- if (false )Expanded (
73- flex: 1 ,
74- child: Padding (
75- padding: const EdgeInsets .all (10.0 ),
76- child: Column (
77- crossAxisAlignment: CrossAxisAlignment .stretch,
78- // mainAxisSize: MainAxisSize.min,
79- children: < Widget > [
80- Center (
81- child: Text (
82- "Flutter TeX's output" ,
83- style: Theme .of (context).textTheme.headline6,
84- ),
85- ),
86- Expanded (
87- child: Container (
88- decoration: BoxDecoration (
89- border: Border .all (width: 1 ),
90- borderRadius: BorderRadius .circular (5.0 ),
72+ if (false )
73+ Expanded (
74+ flex: 1 ,
75+ child: Padding (
76+ padding: const EdgeInsets .all (10.0 ),
77+ child: Column (
78+ crossAxisAlignment: CrossAxisAlignment .stretch,
79+ // mainAxisSize: MainAxisSize.min,
80+ children: < Widget > [
81+ Center (
82+ child: Text (
83+ "Flutter TeX's output" ,
84+ style: Theme .of (context).textTheme.headline6,
9185 ),
92- padding: const EdgeInsets .all (10 ),
93- child: Consumer <TextEditingController >(
94- builder: (context, controller, _) => TeXView (
95- // Must use a GlobalKey, otherwise it will stack
96- key: GlobalKey (debugLabel: 'texView' ),
97- renderingEngine:
98- const TeXViewRenderingEngine .katex (),
99- child: TeXViewDocument (
100- '\$\$ ${controller .value .text }\$\$ ' ,
101- id: '0' ,
86+ ),
87+ Expanded (
88+ child: Container (
89+ decoration: BoxDecoration (
90+ border: Border .all (width: 1 ),
91+ borderRadius: BorderRadius .circular (5.0 ),
92+ ),
93+ padding: const EdgeInsets .all (10 ),
94+ child: Consumer <TextEditingController >(
95+ builder: (context, controller, _) => TeXView (
96+ // Must use a GlobalKey, otherwise it will stack
97+ key: GlobalKey (debugLabel: 'texView' ),
98+ renderingEngine:
99+ const TeXViewRenderingEngine .katex (),
100+ child: TeXViewDocument (
101+ '\$\$ ${controller .value .text }\$\$ ' ,
102+ id: '0' ,
103+ style: TeXViewStyle (
104+ backgroundColor: Colors .white),
105+ ),
102106 style: TeXViewStyle (
103107 backgroundColor: Colors .white),
104108 ),
105- style:
106- TeXViewStyle (backgroundColor: Colors .white),
107109 ),
108110 ),
109111 ),
110- ) ,
111- ] ,
112+ ] ,
113+ ) ,
112114 ),
113- ),
114- )
115+ )
115116 ],
116117 ),
117118 ),
0 commit comments