plex 0.1.0 copy "plex: ^0.1.0" to clipboard
plex: ^0.1.0 copied to clipboard

PLEX is Flutter UI framework for enterprise apps with pre-built components and best practices for efficient development in addition with many built in widgets

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:plex/plex_package.dart';
import 'package:plex/plex_route.dart';
import 'package:plex/plex_screens/plex_login_screen.dart';
import 'package:plex/plex_user.dart';
import 'package:plex/plex_widgets/plex_data_table.dart';

class Routes {
  static const dashboardScreen = "/dashboard";
  static const secondScreen = "/second";
}

void main() async {
  runApp(PlexApp(
    themeFromColor: const Color(0xFF26A9E1),
    // themeFromImage: const AssetImage("/path/to/image"),
    appLogo: const Icon(Icons.account_balance),
    title: "Auto Backup",
    initialRoute: Routes.dashboardScreen,
    useAuthorization: true,
    loginConfig: PlexLoginConfig(
        additionalWidgets: Container(),
        onLogin: (email, password) async {
          return PlexUser({
            "Name": "Abdur Rahman",
          });
        }),
    routes: [
      PlexRoute(
        route: Routes.dashboardScreen,
        category: "Tables",
        title: "Data Table",
        logo: const Icon(Icons.account_balance_outlined),
        screen: (key, context) => PlexDataTable(
          headerTextStyle: const TextStyle(fontWeight: FontWeight.bold),
          headerBackground: Colors.red,
          alternateColor: Colors.lightGreen,
          columns: [
            PlexDataCell.text("Id"),
            PlexDataCell.text("First Name"),
            PlexDataCell.text("Last Name"),
            PlexDataCell.text("Emp Code"),
            PlexDataCell.text("Designation"),
            PlexDataCell.text("Grade"),
            PlexDataCell.text("Company"),
          ],
          rows: [
            [
              PlexDataCell.text("1"),
              PlexDataCell.text("Abdur"),
              PlexDataCell.text("Rahman"),
              PlexDataCell.text("EMP953346RT"),
              PlexDataCell.text("Software Engineer"),
              PlexDataCell.text("Grade / Scale"),
              PlexDataCell.custom(
                "Company Pvt. Ltd",
                const DataCell(
                  Text("Company Pvt. Ltd", style: TextStyle(color: Colors.lime)),
                ),
              ),
            ],
            [
              PlexDataCell.text("1"),
              PlexDataCell.text("Abdur"),
              PlexDataCell.text("Rahman"),
              PlexDataCell.text("EMP953346RT"),
              PlexDataCell.text("Software Engineer"),
              PlexDataCell.text("Grade / Scale"),
              PlexDataCell.custom(
                "Company Pvt. Ltd",
                const DataCell(
                  Text("Company Pvt. Ltd", style: TextStyle(color: Colors.lime)),
                ),
              )
            ],
          ],
        ),
      ),
    ],
  ));
}
8
likes
0
pub points
55%
popularity

Publisher

unverified uploader

PLEX is Flutter UI framework for enterprise apps with pre-built components and best practices for efficient development in addition with many built in widgets

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

file_saver, flutter, flutter_oss_licenses, get, http, intl, shared_preferences, syncfusion_flutter_xlsio

More

Packages that depend on plex