added next page button to summary
This commit is contained in:
parent
3579c4e821
commit
62d3895373
@ -72,19 +72,21 @@ class _LiveCardState extends State<LiveCard> {
|
|||||||
context,
|
context,
|
||||||
useRootNavigator: true,
|
useRootNavigator: true,
|
||||||
builder: (context) => SlidingSheetDialog(
|
builder: (context) => SlidingSheetDialog(
|
||||||
color: Theme.of(context).scaffoldBackgroundColor,
|
color: Colors.black.withOpacity(0.99),
|
||||||
duration: const Duration(milliseconds: 400),
|
duration: const Duration(milliseconds: 400),
|
||||||
scrollSpec: const ScrollSpec.bouncingScroll(),
|
scrollSpec: const ScrollSpec.bouncingScroll(),
|
||||||
snapSpec: const SnapSpec(
|
snapSpec: const SnapSpec(
|
||||||
snap: true,
|
snap: true,
|
||||||
snappings: [1.0],
|
snappings: [1.0],
|
||||||
positioning: SnapPositioning.relativeToSheetHeight,
|
initialSnap: 1.0,
|
||||||
|
positioning: SnapPositioning.relativeToAvailableSpace,
|
||||||
),
|
),
|
||||||
|
minHeight: MediaQuery.of(context).size.height,
|
||||||
cornerRadius: 16,
|
cornerRadius: 16,
|
||||||
cornerRadiusOnFullscreen: 0,
|
cornerRadiusOnFullscreen: 0,
|
||||||
builder: (context, state) => Material(
|
builder: (context, state) => const Material(
|
||||||
color: Theme.of(context).scaffoldBackgroundColor,
|
color: Colors.black,
|
||||||
child: const SummaryScreen(
|
child: SummaryScreen(
|
||||||
currentPage: 'grades',
|
currentPage: 'grades',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -8,8 +8,10 @@ import 'package:filcnaplo/utils/format.dart';
|
|||||||
import 'package:filcnaplo_kreta_api/models/grade.dart';
|
import 'package:filcnaplo_kreta_api/models/grade.dart';
|
||||||
import 'package:filcnaplo_kreta_api/models/subject.dart';
|
import 'package:filcnaplo_kreta_api/models/subject.dart';
|
||||||
import 'package:filcnaplo_kreta_api/providers/grade_provider.dart';
|
import 'package:filcnaplo_kreta_api/providers/grade_provider.dart';
|
||||||
|
import 'package:filcnaplo_mobile_ui/screens/summary/summary_screen.dart';
|
||||||
import 'package:filcnaplo_mobile_ui/screens/summary/summary_screen.i18n.dart';
|
import 'package:filcnaplo_mobile_ui/screens/summary/summary_screen.i18n.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:auto_size_text/auto_size_text.dart';
|
import 'package:auto_size_text/auto_size_text.dart';
|
||||||
|
|
||||||
@ -179,6 +181,13 @@ class _GradesBodyState extends State<GradesBody> {
|
|||||||
getGrades();
|
getGrades();
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
@ -198,6 +207,25 @@ class _GradesBodyState extends State<GradesBody> {
|
|||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
IconButton(
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.of(context).maybePop();
|
||||||
|
Navigator.of(context).push(
|
||||||
|
MaterialPageRoute(
|
||||||
|
builder: (context) =>
|
||||||
|
const SummaryScreen(currentPage: 'lessons'),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
icon: const Icon(
|
||||||
|
FeatherIcons.arrowRight,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
const SizedBox(height: 12.0),
|
const SizedBox(height: 12.0),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: ((100 * subjectTiles5.length) /
|
height: ((100 * subjectTiles5.length) /
|
||||||
|
Loading…
x
Reference in New Issue
Block a user