gecko/lib/widgets/commons/intro_info.dart

53 lines
1.5 KiB
Dart

import 'package:flutter/material.dart';
import 'package:gecko/widgets/commons/build_image.dart';
import 'package:gecko/widgets/commons/build_progress_bar.dart';
import 'package:gecko/widgets/commons/build_text.dart';
import 'package:gecko/widgets/commons/next_button.dart';
class InfoIntro extends StatelessWidget {
const InfoIntro({
Key? key,
required this.text,
required this.assetName,
required this.buttonText,
required this.nextScreen,
required this.pagePosition,
this.isMd = false,
this.isFast = false,
this.boxHeight = 375,
this.imageWidth = 375,
this.textSize = 18,
}) : super(key: key);
final String text;
final String assetName;
final String buttonText;
final Widget nextScreen;
final int pagePosition;
final bool isMd;
final bool isFast;
final double boxHeight;
final double imageWidth;
final double textSize;
@override
Widget build(BuildContext context) {
return Column(children: <Widget>[
const SizedBox(height: 25),
BuildProgressBar(pagePosition: pagePosition),
const SizedBox(height: 25),
BuildText(text: text, size: textSize, isMd: isMd),
BuildImage(
assetName: assetName, boxHeight: boxHeight, imageWidth: imageWidth),
Expanded(
child: Align(
alignment: Alignment.bottomCenter,
child: NextButton(
text: buttonText, nextScreen: nextScreen, isFast: false),
),
),
const SizedBox(height: 40),
]);
}
}