File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class _CodeBlockState extends State<CodeBlock> {
64
64
await widget.setCodeLanguage !(hashKey, lang);
65
65
}
66
66
if (mounted) {
67
- WidgetsBinding .instance? .addPostFrameCallback ((_) {
67
+ WidgetsBinding .instance.addPostFrameCallback ((_) {
68
68
if (mounted) setState (() => language = lang);
69
69
});
70
70
}
@@ -97,13 +97,13 @@ class _CodeBlockState extends State<CodeBlock> {
97
97
constraints:
98
98
BoxConstraints (maxHeight: widget.maxLines == 1 ? 20 : 250 ),
99
99
child: Scrollbar (
100
- isAlwaysShown : true ,
100
+ thumbVisibility : true ,
101
101
controller: _verticalScrollController,
102
102
child: SingleChildScrollView (
103
103
scrollDirection: Axis .vertical,
104
104
controller: _verticalScrollController,
105
105
child: Scrollbar (
106
- isAlwaysShown : true ,
106
+ thumbVisibility : true ,
107
107
controller: _horizontalScrollController,
108
108
child: SingleChildScrollView (
109
109
scrollDirection: Axis .horizontal,
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
- import 'package:flutter/foundation.dart' ;
3
2
import 'package:cached_network_image/cached_network_image.dart' ;
4
3
import 'text_parser.dart' ;
5
4
You can’t perform that action at this time.
0 commit comments