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';
|
||||||
|
|
||||||
@ -181,22 +183,48 @@ class _GradesBodyState extends State<GradesBody> {
|
|||||||
return Column(
|
return Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Row(
|
||||||
'Jó éved volt, $firstName!',
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
textAlign: TextAlign.left,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
style: const TextStyle(
|
children: [
|
||||||
fontWeight: FontWeight.w900,
|
Column(
|
||||||
fontSize: 26.0,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
color: Colors.white,
|
children: [
|
||||||
),
|
Text(
|
||||||
),
|
'Jó éved volt, $firstName!',
|
||||||
const Text(
|
textAlign: TextAlign.left,
|
||||||
'Nézzük a jegyeidet... 📖',
|
style: const TextStyle(
|
||||||
style: TextStyle(
|
fontWeight: FontWeight.w900,
|
||||||
fontWeight: FontWeight.bold,
|
fontSize: 26.0,
|
||||||
fontSize: 22.0,
|
color: Colors.white,
|
||||||
color: Colors.white,
|
),
|
||||||
),
|
),
|
||||||
|
const Text(
|
||||||
|
'Nézzük a jegyeidet... 📖',
|
||||||
|
style: TextStyle(
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 22.0,
|
||||||
|
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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user