I am encountering this error when trying to configure a custom widget.
It is a simple wave divider. The code is most likely buggy but this error makes no sense to me.
// Automatic FlutterFlow imports
import '/backend/supabase/supabase.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 '/custom_code/actions/index.dart'; // Imports custom actions
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!
import 'package:wave_divider/wave_divider.dart';
class WaveDiv extends StatefulWidget {
const WaveDiv({
super.key,
this.width,
this.height,
});
final double? width;
final double? height;
@override
State<WaveDiv> createState() => _WaveDivState();
}
class _WaveDivState extends State<WaveDiv> {
@override
Widget build(BuildContext context) {
return WaveDivider(
thickness: 3,
color: Colors.amber,
waveHeight: 7,
waveWidth: 14,
isVertical: false,
);
}
}
Any help would be appreciated.