flutter_dashboard_table 1.0.1 copy "flutter_dashboard_table: ^1.0.1" to clipboard
flutter_dashboard_table: ^1.0.1 copied to clipboard

Dashboard pluto table for checkin

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_dashboard_table/flutter_dashboard_table.dart';
import 'package:parse_server_sdk_flutter/parse_server_sdk_flutter.dart';

Future<void> main() async {
  await Parse().initialize(
    'rwVZ0uPY0fMB80mzbcaXNpLhiFuwwKpTYUj7Hmcv',
    'https://parseapi.back4app.com',
    clientKey: 'SR9Mxq17TQyCR1wh8tnlCY4Fwuy3o2tNaPI7Qfbw',
  );
  runApp(const MainApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme(
          brightness: Brightness.light,
          primary: ColorUtils.primary,
          onPrimary: ColorUtils.onPrimary,
          secondary: ColorUtils.outline,
          onSecondary: ColorUtils.outlineVariant,
          error: Colors.red,
          onError: Colors.orange,
          background: ColorUtils.surface,
          onBackground: ColorUtils.onSurface,
          surface: ColorUtils.surface,
          onSurface: ColorUtils.onSurface,
          outline: ColorUtils.outline,
          outlineVariant: ColorUtils.outlineVariant,
        ),
        visualDensity: VisualDensity.standard,
      ),
      home: Scaffold(
        body: DashboardTable(
          structureId: "be9fB7kFLF",
          onCopy: (checkIn) => debugPrint(checkIn.objectId!),
          onToPdf: (checkIn) => debugPrint(checkIn.objectId!),
        ),
      ),
    );
  }
}

class ColorUtils {
  static Color primary = const Color(0xFFA5CE44);
  static Color onPrimary = Colors.white;
  static Color surface = const Color(0xFFFFFFFF);
  static Color onSurface = const Color(0xFF101E01);
  static Color outline = const Color(0xFFD7DAD3);
  static Color outlineVariant = const Color(0xFF9AA591);
}
1
likes
120
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Dashboard pluto table for checkin

Documentation

API reference

License

unknown (license)

Dependencies

collection, flutter, intl, parse_server_sdk_flutter, pluto_grid_plus

More

Packages that depend on flutter_dashboard_table