Skip to content

Commit 39af33b

Browse files
committed
Initial commit.
0 parents  commit 39af33b

12 files changed

Lines changed: 143 additions & 0 deletions
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish to Pub.dev
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
publishing:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: "Checkout"
12+
uses: actions/checkout@v4
13+
14+
- name: "datatable"
15+
uses: k-paxian/dart-package-publisher@master
16+
with:
17+
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
18+
format: true

.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
*.lock
7+
.DS_Store
8+
.atom/
9+
.buildlog/
10+
.history
11+
.svn/
12+
migrate_working_dir/
13+
14+
# IntelliJ related
15+
*.iml
16+
*.ipr
17+
*.iws
18+
.idea/
19+
20+
# The .vscode folder contains launch configuration and tasks you configure in
21+
# VS Code which you may wish to be included in version control, so this line
22+
# is commented out by default.
23+
#.vscode/
24+
25+
# Flutter/Dart/Pub related
26+
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
27+
/pubspec.lock
28+
**/doc/api/
29+
.dart_tool/
30+
.flutter-plugins-dependencies
31+
/build/
32+
/coverage/

.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "a2bd0045b5a77d471254e1a54379510a08380bb8"
8+
channel: "master"
9+
10+
project_type: package

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.0.1
2+
3+
* Initial release.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020-2025 Mahdi K. Fard
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Async DataTable with pagination, sticky header and footers, alternation and more.

analysis_options.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
# Additional information about this file can be found at
4+
# https://dart.dev/guides/language/analysis-options

lib/datatable.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
library datatable;
2+
3+
import 'package:flutter/material.dart';
4+
5+
part 'src/async_data_table_source.dart';
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
part of '../datatable.dart';
2+
3+
abstract class AsyncDataTableSource {
4+
Future<List<DataRow>> getPage(int page);
5+
}

lib/src/paginated_data_table.dart

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import 'package:flutter/widgets.dart';
2+
3+
class PaginatedDataTable extends StatefulWidget {
4+
const PaginatedDataTable({Key? key}) : super(key: key);
5+
6+
@override
7+
State<StatefulWidget> createState() => PaginatedDataTableState();
8+
}
9+
10+
class PaginatedDataTableState extends State<PaginatedDataTable> {
11+
@override
12+
Widget build(BuildContext context) {
13+
throw UnimplementedError();
14+
}
15+
}

0 commit comments

Comments
 (0)