diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..65062ac --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "cSpell.words": [ + "Jolie" + ] +} \ No newline at end of file diff --git a/assets/icons/excle_file.svg b/assets/icons/excel_file.svg similarity index 100% rename from assets/icons/excle_file.svg rename to assets/icons/excel_file.svg diff --git a/assets/icons/menu_dashbord.svg b/assets/icons/menu_dashboard.svg similarity index 100% rename from assets/icons/menu_dashbord.svg rename to assets/icons/menu_dashboard.svg diff --git a/lib/models/RecentFile.dart b/lib/models/RecentFile.dart index a3b102b..b7b9c79 100644 --- a/lib/models/RecentFile.dart +++ b/lib/models/RecentFile.dart @@ -42,7 +42,7 @@ List demoRecentFiles = [ size: "3.5mb", ), RecentFile( - icon: "assets/icons/excle_file.svg", + icon: "assets/icons/excel_file.svg", title: "Excel File", date: "25-02-2021", size: "34.5mb", diff --git a/lib/responsive.dart b/lib/responsive.dart index 33545cd..bb50df7 100644 --- a/lib/responsive.dart +++ b/lib/responsive.dart @@ -14,7 +14,7 @@ class Responsive extends StatelessWidget { // This size work fine on my design, maybe you need some customization depends on your design - // This isMobile, isTablet, isDesktop helep us later + // This isMobile, isTablet, isDesktop help us later static bool isMobile(BuildContext context) => MediaQuery.of(context).size.width < 850; diff --git a/lib/screens/dashboard/components/chart.dart b/lib/screens/dashboard/components/chart.dart index 8438fd8..725f222 100644 --- a/lib/screens/dashboard/components/chart.dart +++ b/lib/screens/dashboard/components/chart.dart @@ -19,7 +19,7 @@ class Chart extends StatelessWidget { sectionsSpace: 0, centerSpaceRadius: 70, startDegreeOffset: -90, - sections: paiChartSelectionDatas, + sections: paiChartSelectionData, ), ), Positioned.fill( @@ -45,7 +45,7 @@ class Chart extends StatelessWidget { } } -List paiChartSelectionDatas = [ +List paiChartSelectionData = [ PieChartSectionData( color: primaryColor, value: 25, diff --git a/lib/screens/dashboard/components/storage_details.dart b/lib/screens/dashboard/components/storage_details.dart index e8205c5..47fb8d3 100644 --- a/lib/screens/dashboard/components/storage_details.dart +++ b/lib/screens/dashboard/components/storage_details.dart @@ -4,8 +4,8 @@ import '../../../constants.dart'; import 'chart.dart'; import 'storage_info_card.dart'; -class StarageDetails extends StatelessWidget { - const StarageDetails({ +class StorageDetails extends StatelessWidget { + const StorageDetails({ Key? key, }) : super(key: key); diff --git a/lib/screens/dashboard/dashboard_screen.dart b/lib/screens/dashboard/dashboard_screen.dart index b368a52..074f5d3 100644 --- a/lib/screens/dashboard/dashboard_screen.dart +++ b/lib/screens/dashboard/dashboard_screen.dart @@ -31,17 +31,17 @@ class DashboardScreen extends StatelessWidget { RecentFiles(), if (Responsive.isMobile(context)) SizedBox(height: defaultPadding), - if (Responsive.isMobile(context)) StarageDetails(), + if (Responsive.isMobile(context)) StorageDetails(), ], ), ), if (!Responsive.isMobile(context)) SizedBox(width: defaultPadding), - // On Mobile means if the screen is less than 850 we dont want to show it + // On Mobile means if the screen is less than 850 we don't want to show it if (!Responsive.isMobile(context)) Expanded( flex: 2, - child: StarageDetails(), + child: StorageDetails(), ), ], ) diff --git a/lib/screens/main/components/side_menu.dart b/lib/screens/main/components/side_menu.dart index d30255e..2099962 100644 --- a/lib/screens/main/components/side_menu.dart +++ b/lib/screens/main/components/side_menu.dart @@ -16,7 +16,7 @@ class SideMenu extends StatelessWidget { ), DrawerListTile( title: "Dashboard", - svgSrc: "assets/icons/menu_dashbord.svg", + svgSrc: "assets/icons/menu_dashboard.svg", press: () {}, ), DrawerListTile(