Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
aslight0013 committed May 3, 2023
1 parent ac0cbaf commit f7fc1f6
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 23 deletions.
2 changes: 1 addition & 1 deletion lib/screens/dashboard/components/chart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Chart extends StatelessWidget {
SizedBox(height: defaultPadding),
Text(
"29.1",
style: Theme.of(context).textTheme.headline4!.copyWith(
style: Theme.of(context).textTheme.headlineMedium!.copyWith(
color: Colors.white,
fontWeight: FontWeight.w600,
height: 0.5,
Expand Down
7 changes: 4 additions & 3 deletions lib/screens/dashboard/components/file_info_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class FileInfoCard extends StatelessWidget {
),
child: SvgPicture.asset(
info.svgSrc!,
color: info.color,
colorFilter: ColorFilter.mode(
info.color ?? Colors.black, BlendMode.srcIn),
),
),
Icon(Icons.more_vert, color: Colors.white54)
Expand All @@ -59,14 +60,14 @@ class FileInfoCard extends StatelessWidget {
"${info.numOfFiles} Files",
style: Theme.of(context)
.textTheme
.caption!
.bodySmall!
.copyWith(color: Colors.white70),
),
Text(
info.totalStorage!,
style: Theme.of(context)
.textTheme
.caption!
.bodySmall!
.copyWith(color: Colors.white),
),
],
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/dashboard/components/header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Header extends StatelessWidget {
if (!Responsive.isMobile(context))
Text(
"Dashboard",
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.titleLarge,
),
if (!Responsive.isMobile(context))
Spacer(flex: Responsive.isDesktop(context) ? 2 : 1),
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/dashboard/components/my_fields.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MyFiles extends StatelessWidget {
children: [
Text(
"My Files",
style: Theme.of(context).textTheme.subtitle1,
style: Theme.of(context).textTheme.titleMedium,
),
ElevatedButton.icon(
style: TextButton.styleFrom(
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/dashboard/components/my_files.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MyFiles extends StatelessWidget {
children: [
Text(
"My Files",
style: Theme.of(context).textTheme.subtitle1,
style: Theme.of(context).textTheme.titleMedium,
),
ElevatedButton.icon(
style: TextButton.styleFrom(
Expand Down
4 changes: 2 additions & 2 deletions lib/screens/dashboard/components/recent_files.dart
Original file line number Diff line number Diff line change
@@ -1,5 +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 All @@ -23,7 +23,7 @@ class RecentFiles extends StatelessWidget {
children: [
Text(
"Recent Files",
style: Theme.of(context).textTheme.subtitle1,
style: Theme.of(context).textTheme.titleMedium,
),
SizedBox(
width: double.infinity,
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/dashboard/components/storage_info_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class StorageInfoCard extends StatelessWidget {
"$numOfFiles Files",
style: Theme.of(context)
.textTheme
.caption!
.bodySmall!
.copyWith(color: Colors.white70),
),
],
Expand Down
4 changes: 2 additions & 2 deletions lib/screens/dashboard/dashboard_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class DashboardScreen extends StatelessWidget {
MyFiles(),
SizedBox(height: defaultPadding),
RecentFiles(),
// if (Responsive.isMobile(context))
// SizedBox(height: defaultPadding),
if (Responsive.isMobile(context))
SizedBox(height: defaultPadding),
if (Responsive.isMobile(context)) StarageDetails(),
],
),
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/main/components/side_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class DrawerListTile extends StatelessWidget {
horizontalTitleGap: 0.0,
leading: SvgPicture.asset(
svgSrc,
color: Colors.white54,
colorFilter: ColorFilter.mode(Colors.white54, BlendMode.srcIn),
height: 16,
),
title: Text(
Expand Down
10 changes: 1 addition & 9 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.5"
data_table_2:
dependency: "direct main"
description:
name: data_table_2
sha256: daea1a67128e88b6b5537ee0752c67ecdc2fba9cd9303b3554361c648549618d
url: "https://pub.dev"
source: hosted
version: "2.4.2"
equatable:
dependency: transitive
description:
Expand Down Expand Up @@ -418,4 +410,4 @@ packages:
version: "6.2.2"
sdks:
dart: ">=2.19.0 <3.0.0"
flutter: ">=3.7.0"
flutter: ">=3.7.0-0"
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ dependencies:
flutter_svg: ^2.0.5
fl_chart: ^0.62.0
provider: ^6.0.5
data_table_2: ^2.0.3

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit f7fc1f6

Please sign in to comment.