flutter_html_table_extension 0.0.1-beta.1 copy "flutter_html_table_extension: ^0.0.1-beta.1" to clipboard
flutter_html_table_extension: ^0.0.1-beta.1 copied to clipboard

Render tables easily for flutter_html 3.0.0-beta.2

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:flutter_html_table_extension/flutter_html_table_extension.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'flutter_html_table_extension',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'flutter_html_table_extension'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  Widget build(BuildContext context) {
    //
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(title),
      ),
      body: Html(
        data:
            '<table><tr><td>Row 1 Col 1</td><td>Row 1 Col 2</td></tr><tr><td>Row 2 Col 1</td><td>Row 2 Col 2</td></tr></table>',
        extensions: [
          HtmlTableExtension(),
        ],
      ),
    );
  }
}
0
likes
0
pub points
51%
popularity

Publisher

unverified uploader

Render tables easily for flutter_html 3.0.0-beta.2

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter, flutter_html

More

Packages that depend on flutter_html_table_extension