Skip to content

Commit

Permalink
Merge pull request #14 from akcauser/DatatableOverflow
Browse files Browse the repository at this point in the history
datatable2 installed and datatable overflow fixed with horizontal scroll.
  • Loading branch information
aslight0013 committed Jun 19, 2021
2 parents 0bcc761 + 1843af4 commit 6b9e6de
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/screens/dashboard/components/recent_files.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:admin/models/RecentFile.dart';
import 'package:data_table_2/data_table_2.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';

Expand Down Expand Up @@ -26,9 +27,9 @@ class RecentFiles extends StatelessWidget {
),
SizedBox(
width: double.infinity,
child: DataTable(
horizontalMargin: 0,
child: DataTable2(
columnSpacing: defaultPadding,
minWidth: 600,
columns: [
DataColumn(
label: Text("File Name"),
Expand Down
7 changes: 7 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.3"
data_table_2:
dependency: "direct main"
description:
name: data_table_2
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.3"
equatable:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies:
flutter_svg: ^0.22.0
fl_chart: ^0.36.1
provider: ^5.0.0
data_table_2: ^2.0.3

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 6b9e6de

Please sign in to comment.