From 96ba6eda544c661040ecd2dd5a90e33345e401af Mon Sep 17 00:00:00 2001 From: Aryan Maheshwari <98485902+aryanmaheshwari1420@users.noreply.github.com> Date: Mon, 5 Jun 2023 00:07:03 +0530 Subject: [PATCH] Update mobile_repo_details.dart --- lib/page/mobile_repo_details.dart | 34 ++++++++++++++++--------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/lib/page/mobile_repo_details.dart b/lib/page/mobile_repo_details.dart index 85e0dde..49e20e3 100644 --- a/lib/page/mobile_repo_details.dart +++ b/lib/page/mobile_repo_details.dart @@ -9,26 +9,28 @@ import 'package:fl_chart/fl_chart.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; + ///Repo page that is displayed on mobile class NarrowRepoPage extends ConsumerWidget { - ///Constructor for narrow page - const NarrowRepoPage( - this.firebaseApp, - this.simpleRepo, - this.myWidth, - this.myHeight, - ); + /// Constructor for narrow page + const NarrowRepoPage({ + Key? key, + required this.firebaseApp, + required this.simpleRepo, + required this.myWidth, + required this.myHeight, + }) : super(key: key); - ///instance of firebaseApp + /// Instance of firebaseApp final FirebaseApp firebaseApp; - ///Instance of simple repo + /// Instance of simple repo final SimpleRepo simpleRepo; - ///Width of the screen + /// Width of the screen final double myWidth; - ///Height of the screen + /// Height of the screen final double myHeight; @override @@ -36,11 +38,11 @@ class NarrowRepoPage extends ConsumerWidget { final cache = ref.read(cacheProvider); final dashboardProvider = ref.read(myDashboardProvider); return MobileSummaryDashboard( - cache, - firebaseApp, - dashboardProvider, - myWidth, - myHeight, + cache: cache, + firebaseApp: firebaseApp, + dashboardProvider: dashboardProvider, + myWidth: myWidth, + myHeight: myHeight, ); } }