from_h_t_m_l.dart 928 B

12345678910111213141516171819202122232425262728293031323334
  1. // Automatic FlutterFlow imports
  2. import '/backend/schema/structs/index.dart';
  3. import '/flutter_flow/flutter_flow_theme.dart';
  4. import '/flutter_flow/flutter_flow_util.dart';
  5. import 'index.dart'; // Imports other custom widgets
  6. import '/flutter_flow/custom_functions.dart'; // Imports custom functions
  7. import 'package:flutter/material.dart';
  8. // Begin custom widget code
  9. // DO NOT REMOVE OR MODIFY THE CODE ABOVE!
  10. import 'package:flutter_widget_from_html/flutter_widget_from_html.dart';
  11. class FromHTML extends StatefulWidget {
  12. const FromHTML({
  13. super.key,
  14. this.width,
  15. this.height,
  16. required this.HTMLParameter,
  17. });
  18. final double? width;
  19. final double? height;
  20. final String HTMLParameter;
  21. @override
  22. State<FromHTML> createState() => _FromHTMLState();
  23. }
  24. class _FromHTMLState extends State<FromHTML> {
  25. @override
  26. Widget build(BuildContext context) {
  27. return HtmlWidget(widget.HTMLParameter);
  28. }
  29. }