File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ class TextLayer extends ImageLayer {
9898 builder: (context) {
9999 return ValueListenableBuilder (
100100 valueListenable: _fontFamily,
101- builder: (context, value, child) => _FontFamily (
101+ builder: (context, value, child) => _FontFamilyHandler (
102102 value: value,
103103 onChanged: (value) {
104104 controller.textStyle = controller.textStyle.copyWith (
@@ -162,8 +162,8 @@ class _TextSizeHandler extends StatelessWidget {
162162 }
163163}
164164
165- class _FontFamily extends StatelessWidget {
166- const _FontFamily ({
165+ class _FontFamilyHandler extends StatelessWidget {
166+ const _FontFamilyHandler ({
167167 required this .value,
168168 required this .onChanged,
169169 });
@@ -196,7 +196,10 @@ class _FontFamily extends StatelessWidget {
196196 )
197197 : BorderSide .none,
198198 ),
199- title: Text (font.displayName),
199+ title: Text (
200+ font.displayName,
201+ style: TextStyle (fontFamily: font.name, fontSize: 25 ),
202+ ),
200203 onTap: () {
201204 onChanged (font);
202205 },
You can’t perform that action at this time.
0 commit comments