@@ -3,17 +3,14 @@ import 'package:shaders/shader_source_viewer.dart';
33import '../main.dart' ;
44
55/// A tabbed panel that displays shader controls and source code.
6- ///
6+ ///
77/// This widget provides two tabs:
88/// - Controls: Custom shader-specific controls built by the shader builder
99/// - Source: The shader source code with syntax highlighting and copy functionality
1010class ShaderControlPanel extends StatelessWidget {
1111 final ShaderInfo shaderInfo;
1212
13- const ShaderControlPanel ({
14- super .key,
15- required this .shaderInfo,
16- });
13+ const ShaderControlPanel ({super .key, required this .shaderInfo});
1714
1815 @override
1916 Widget build (BuildContext context) {
@@ -34,14 +31,14 @@ class ShaderControlPanel extends StatelessWidget {
3431 padding: const EdgeInsets .all (16 ),
3532 child: shaderInfo.builder.buildControls (context),
3633 ),
37- SizedBox ()
38- // Padding(
39- // padding: const EdgeInsets.all(16),
40- // child: ShaderSourceViewer(
41- // assetKey: shaderInfo.assetKey,
42- // shaderName: shaderInfo.name,
43- // ),
44- // ),
34+
35+ Padding (
36+ padding: const EdgeInsets .all (16 ),
37+ child: ShaderSourceViewer (
38+ assetKey: shaderInfo.assetKey,
39+ shaderName: shaderInfo.name,
40+ ),
41+ ),
4542 ],
4643 ),
4744 ),
0 commit comments