vivla_data_grid 0.1.4 copy "vivla_data_grid: ^0.1.4" to clipboard
vivla_data_grid: ^0.1.4 copied to clipboard

A new VIVLA package with a data table for reservations.

example/lib/main.dart

import 'package:example/mock_data.dart';
import 'package:flutter/material.dart';
import 'package:vivla_data_grid/vivla_data_grid.dart';
import 'dart:convert';

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

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

  @override
  Widget build(BuildContext context) {
    List<Map<String, dynamic>> mockData = getMockData();

    String jsonInput = jsonEncode(mockData);

    return MaterialApp(
      title: 'VivlaDataGrid Demo',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('VivlaDataGrid Example'),
        ),
        body: Padding(
          padding: const EdgeInsets.all(16.0),
          child: VivlaDataGrid(
            inputData: jsonInput,
            onRowSelected: (selectedRow) =>
                print('fila selecionada $selectedRow'),
          ),
        ),
      ),
    );
  }
}
0
likes
140
points
615
downloads

Publisher

unverified uploader

Weekly Downloads

A new VIVLA package with a data table for reservations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, syncfusion_flutter_datagrid

More

Packages that depend on vivla_data_grid