You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
749 B
Dart
24 lines
749 B
Dart
|
3 years ago
|
import 'package:flutter/material.dart';
|
||
|
|
import 'package:mohem_flutter_app/classes/decorations_helper.dart';
|
||
|
|
import 'package:mohem_flutter_app/config/routes.dart';
|
||
|
|
import 'package:mohem_flutter_app/extensions/string_extensions.dart';
|
||
|
|
import 'package:mohem_flutter_app/extensions/widget_extensions.dart';
|
||
|
|
|
||
|
|
class MarathonBanner extends StatelessWidget {
|
||
|
|
const MarathonBanner({Key? key}) : super(key: key);
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
return Container(
|
||
|
|
height: 88,
|
||
|
|
width: double.infinity,
|
||
|
|
decoration: MyDecorations.shadowDecoration,
|
||
|
|
child: Center(
|
||
|
|
child: "Banner Here".toText14(),
|
||
|
|
),
|
||
|
|
).onPress(
|
||
|
|
() => Navigator.pushNamed(context, AppRoutes.marathonIntroScreen),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|