Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ireshmw/crud_table
CRUD Table Flutter consists of a Lazy loading function, resizable columns, and integrated CRUD Form.
https://github.com/ireshmw/crud_table
crud crud-table-flutter dart data-table flutter form lazy-loading table
Last synced: 2 months ago
JSON representation
CRUD Table Flutter consists of a Lazy loading function, resizable columns, and integrated CRUD Form.
- Host: GitHub
- URL: https://github.com/ireshmw/crud_table
- Owner: ireshmw
- License: apache-2.0
- Created: 2021-11-25T15:13:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-12T07:43:35.000Z (about 1 year ago)
- Last Synced: 2024-10-25T18:14:15.487Z (3 months ago)
- Topics: crud, crud-table-flutter, dart, data-table, flutter, form, lazy-loading, table
- Language: Dart
- Homepage: https://pub.dev/packages/crud_table
- Size: 4.18 MB
- Stars: 23
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# CRUD Table Flutter
CRUD Table Flutter is a powerful Flutter package that simplifies the creation of CRUD UI for your entity, object or class. This package features a highly efficient lazy loading function, resizable columns, and an integrated CRUD form to provide a seamless user experience. With CRUD Table Flutter, you can easily manage and organize your data, boosting your productivity and efficiency.
## Features
- Lazy loading Table
- Resizable columns
- Integrated CRUD Form
- Customizable UI|
CRUD UI |
Lazy loading |
| :---: | :---: |## Getting started
The package uses Riverpod for state management. So Please ensure you import flutter_riverpod and wrap the app with ProviderScope.
```dart
import 'package:flutter_riverpod/flutter_riverpod.dart';runApp(
ProviderScope(
child: MyApp(),
),
);
```
See the [example](https://github.com/ireshmw/crud_table/tree/main/example) project.## Installing:
In your pubspec.yaml
```yaml
dependencies:
crud_table:
```
```dart
import 'package:crud_table/crud_table.dart';
```## Usage
When using CrudTable, a CrudViewSource field must be passed and cannot be null. In the CrudViewSource, you will find a function field called emptyEntityFactory. This function requires an empty object that will be used with the CRUD UI.
**Ex** :
Let's say you use` User.class` with this CrudTable, then the `emptyEntityFactory` will be
```
emptyEntityFactory: () => User();
```
**Note :**
_Give unique on every `FormItem` otherwise form data change will not work as we expect._Check the [example](https://github.com/ireshmw/crud_table/tree/main/example) project.
## Additional information
Inspired by [Vaadin Crud UI Add-on](https://vaadin.com/directory/component/crud-ui-add-on)## License
Licensed under the [Apache License, Version 2.0](LICENSE)