Skip to content

Commit

Permalink
datatable2 installed and datatable overflow fixed, horizontal scroll …
Browse files Browse the repository at this point in the history
…adding through datatable2
  • Loading branch information
aslight0013 committed Jun 19, 2021
1 parent 0bcc761 commit 1843af4
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 1843af4

Please sign in to comment.