forked from lxm_flutter/FlutterUnit
代码格式优化完毕
This commit is contained in:
@@ -9,7 +9,7 @@ import 'highlighter_style.dart';
|
||||
import 'language/dart_languge.dart';
|
||||
|
||||
class CodeWidget extends StatelessWidget {
|
||||
CodeWidget({Key? key, required this.code,required this.style, this.fontSize = 13,this.fontFamily})
|
||||
const CodeWidget({Key? key, required this.code,required this.style, this.fontSize = 13,this.fontFamily})
|
||||
: super(key: key);
|
||||
|
||||
final String code;
|
||||
@@ -39,10 +39,10 @@ class CodeWidget extends StatelessWidget {
|
||||
body = SingleChildScrollView(
|
||||
child: Container(
|
||||
child: _codeWidget,
|
||||
padding: EdgeInsets.all(10),
|
||||
padding: const EdgeInsets.all(10),
|
||||
decoration: BoxDecoration(
|
||||
color: style.backgroundColor ?? Color(0xffF6F8FA),
|
||||
borderRadius: BorderRadius.all(Radius.circular(5.0))),
|
||||
color: style.backgroundColor ?? const Color(0xffF6F8FA),
|
||||
borderRadius: const BorderRadius.all(Radius.circular(5.0))),
|
||||
),
|
||||
);
|
||||
return body;
|
||||
|
||||
Reference in New Issue
Block a user