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

A new VIVLA package with a data table for reservations.

example/lib/main.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>> books = [];

    Map<String, dynamic> data = <String, dynamic>{};
    data['Id reserva'] = '111111';
    data['Casa'] = 'Saona';
    data['Propietario'] = 'Raul';
    data['Fecha de la reserva'] = '20/06/2023';
    data['Tipo de reserva'] = 'Disfrute';
    data['Estado de la estancia'] = 'active';
    data['Huesped principal'] = 'Raul';
    data['Notas huespedes'] = '';
    data['Fecha de entrada'] = '20/06/2023';
    data['Fecha de salida'] = '20/06/2024';
    data['Nº de personas'] = 2;
    data['Nº de estancias'] = 1;
    data['Nº de locker'] = 1;
    data['CX'] = '';
    data['Planificación'] = '✅ SI';
    data['Check in'] = '✅ SI';
    data['Pre-estancia'] = '✅ SI';
    data['Control de llegada'] = '✅ SI';
    data['NPS'] = '🔴 NO';
    data['Disfrutada'] = '🔴 NO';
    data['Notas de planificación'] = '';
    data['Plan de viaje'] = '';
    books.add(data);

    Map<String, dynamic> data2 = <String, dynamic>{};
    data2['Id reserva'] = '222222';
    data2['Casa'] = 'Fir';
    data2['Propietario'] = 'Lau';
    data2['Fecha de la reserva'] = '26/06/2023';
    data2['Tipo de reserva'] = 'Alquiler';
    data2['Estado de la estancia'] = 'active';
    data2['Huesped principal'] = 'Lau';
    data2['Notas huespedes'] = '';
    data2['Fecha de entrada'] = '26/06/2023';
    data2['Fecha de salida'] = '26/06/2024';
    data2['Nº de personas'] = 2;
    data2['Nº de estancias'] = 1;
    data2['Nº de locker'] = 1;
    data2['CX'] = '';
    data2['Planificación'] = '✅ SI';
    data2['Check in'] = '✅ SI';
    data2['Pre-estancia'] = '🔴 NO';
    data2['Control de llegada'] = '🔴 NO';
    data2['NPS'] = '🔴 NO';
    data2['Disfrutada'] = '🔴 NO';
    data2['Notas de planificación'] = '';
    data2['Plan de viaje'] = '';
    books.add(data2);

    Map<String, dynamic> data3 = <String, dynamic>{};
    data3['Id reserva'] = '333333';
    data3['Casa'] = 'Nin';
    data3['Propietario'] = 'Oscar';
    data3['Fecha de la reserva'] = '16/06/2023';
    data3['Tipo de reserva'] = 'Intercambio';
    data3['Estado de la estancia'] = 'canceled';
    data3['Huesped principal'] = 'Oscar';
    data3['Notas huespedes'] = '';
    data3['Fecha de entrada'] = '16/06/2023';
    data3['Fecha de salida'] = '16/06/2024';
    data3['Nº de personas'] = 1;
    data3['Nº de estancias'] = 1;
    data3['Nº de locker'] = 1;
    data3['CX'] = '';
    data3['Planificación'] = '🔴 NO';
    data3['Check in'] = '🔴 NO';
    data3['Pre-estancia'] = '🔴 NO';
    data3['Control de llegada'] = '🔴 NO';
    data3['NPS'] = '🔴 NO';
    data3['Disfrutada'] = '🔴 NO';
    data3['Notas de planificación'] = '';
    data3['Plan de viaje'] = '';
    books.add(data3);

    String jsonInput = jsonEncode(books);

    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),
        ),
      ),
    );
  }
}
0
likes
0
points
555
downloads

Publisher

unverified uploader

Weekly Downloads

A new VIVLA package with a data table for reservations.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, syncfusion_flutter_datagrid

More

Packages that depend on vivla_data_grid