61 lines
2.0 KiB
Dart
61 lines
2.0 KiB
Dart
import 'package:encrateia/screens/dashboard.dart';
|
|
import 'package:encrateia/utils/my_button.dart';
|
|
import 'package:encrateia/utils/my_color.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/widgets.dart';
|
|
import 'package:encrateia/utils/icon_utils.dart';
|
|
|
|
class OnboardingFinishedScreen extends StatelessWidget {
|
|
const OnboardingFinishedScreen();
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return WillPopScope(
|
|
onWillPop: () async => false,
|
|
child: Scaffold(
|
|
appBar: AppBar(
|
|
backgroundColor: MyColor.primary,
|
|
title: const Text('Athlete setup successfully'),
|
|
automaticallyImplyLeading: false,
|
|
),
|
|
body: SafeArea(
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(20),
|
|
child: Card(
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: <Widget>[
|
|
ListTile(
|
|
leading: MyIcon.hello,
|
|
title: const Text('Congratulations!'),
|
|
subtitle: const Text(
|
|
'You have successfully setup the athlete.',
|
|
),
|
|
),
|
|
ButtonBar(
|
|
children: <Widget>[
|
|
TextButton(
|
|
style: MyButton.flatButtonStyle,
|
|
child: const Text('Finish'),
|
|
onPressed: () async {
|
|
await Navigator.pushAndRemoveUntil(
|
|
context,
|
|
MaterialPageRoute<BuildContext>(
|
|
builder: (BuildContext _) => const Dashboard(),
|
|
),
|
|
(_) => false,
|
|
);
|
|
},
|
|
)
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|