I am having trouble to get the boilerplate code provided to work for a Custom Widget.
I go to the widget settings panel on the side and I copy the boilerplate code to the editor using the "Copy to Editor" button and when I compile the widget it says "Has Errors". When I click on the "Has Errors" button I am presented with a blank pop-up.
Any suggestions or guidance would be appreciated.
Bellow is the boilerplate code:
// Automatic FlutterFlow imports
import '/backend/backend.dart';
import '/flutter_flow/flutter_flow_theme.dart';
import '/flutter_flow/flutter_flow_util.dart';
import '/custom_code/widgets/index.dart'; // Imports other custom widgets
import '/flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom widget code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!
class NewCustomWidget extends StatefulWidget {
const NewCustomWidget({
Key? key,
this.width,
this.height,
}) : super(key: key);
final double? width;
final double? height;
@override
_NewCustomWidgetState createState() => _NewCustomWidgetState();
}
class _NewCustomWidgetState extends State<NewCustomWidget> {
@override
Widget build(BuildContext context) {
return Container();
}
}