Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions lib/page/mobile_repo_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,40 @@ 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
Widget build(BuildContext context, WidgetRef ref) {
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,
);
}
}
Expand Down