59 lines
1.6 KiB
Dart
59 lines
1.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:pcast/components/nc_base_page.dart';
|
|
import 'package:routefly/routefly.dart';
|
|
|
|
import '../components/nc_button.dart';
|
|
|
|
Route routeBuilder(BuildContext ctx, RouteSettings settings) {
|
|
return PageRouteBuilder(
|
|
transitionDuration: const Duration(seconds: 5),
|
|
pageBuilder: (_, a1, a2) => const AppPage(),
|
|
transitionsBuilder: (_, a1, a2, child) {
|
|
return FadeTransition(
|
|
opacity: a1,
|
|
child: child,
|
|
);
|
|
},
|
|
);
|
|
}
|
|
|
|
class AppPage extends StatelessWidget {
|
|
const AppPage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return NcBasePage(
|
|
body: Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
NcButton(
|
|
width: MediaQuery.of(context).size.width * 0.6,
|
|
height: 100,
|
|
caption: "Quero testar a plataforma",
|
|
backgroundColor: Colors.black,
|
|
captionColor: Colors.white,
|
|
onPressed: () => {
|
|
Routefly.navigate('/test'),
|
|
},
|
|
),
|
|
const SizedBox(
|
|
height: 40,
|
|
),
|
|
NcButton(
|
|
width: MediaQuery.of(context).size.width * 0.6,
|
|
height: 100,
|
|
caption: "Já sou cliente",
|
|
backgroundColor: Colors.black,
|
|
captionColor: Colors.white,
|
|
onPressed: () => {
|
|
Routefly.navigate('/login'),
|
|
},
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|