Files
Edouard Marquez e3bc40fdf3 chore: Migration to Dart 3.8 (#6668)
* Migration to Dart 3.8

* New GA

* Fix dartdoc
2025-06-23 18:14:17 +02:00

19 lines
624 B
Dart

import 'package:flutter/material.dart';
import 'package:smooth_app/generic_lib/html/smooth_html_widget.dart';
import 'package:smooth_app/widgets/smooth_app_bar.dart';
import 'package:smooth_app/widgets/smooth_scaffold.dart';
/// Displays in widgets a HTML page
class HtmlPage extends StatelessWidget {
const HtmlPage({required this.pageTitle, required this.htmlString});
final String pageTitle;
final String htmlString;
@override
Widget build(BuildContext context) => SmoothScaffold(
appBar: SmoothAppBar(title: Text(pageTitle)),
body: SingleChildScrollView(child: SmoothHtmlWidget(htmlString)),
);
}