54 lines
1.7 KiB
Dart
54 lines
1.7 KiB
Dart
import 'package:admin/responsive.dart';
|
|
import 'package:admin/screens/dashboard/components/my_fields.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
import '../../constants.dart';
|
|
import 'components/header.dart';
|
|
|
|
import 'components/students_table.dart';
|
|
import 'components/storage_details.dart';
|
|
|
|
class DashboardScreen extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SafeArea(
|
|
child: SingleChildScrollView(
|
|
primary: false,
|
|
padding: EdgeInsets.all(defaultPadding),
|
|
child: Column(
|
|
children: [
|
|
Header(),
|
|
SizedBox(height: defaultPadding),
|
|
Row(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Expanded(
|
|
flex: 5,
|
|
child: Column(
|
|
children: [
|
|
MyFiles(),
|
|
SizedBox(height: defaultPadding),
|
|
StudentsTable(),
|
|
if (Responsive.isMobile(context))
|
|
SizedBox(height: defaultPadding),
|
|
if (Responsive.isMobile(context)) StorageDetails(),
|
|
],
|
|
),
|
|
),
|
|
// if (!Responsive.isMobile(context))
|
|
// SizedBox(width: defaultPadding),
|
|
// // 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: StorageDetails(),
|
|
// ),
|
|
],
|
|
)
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|