SeniorStatePageImage constructor

SeniorStatePageImage({
  1. Key? key,
  2. List<SeniorButton>? actions,
  3. required String imagePath,
  4. double imageSize = 160.0,
  5. SeniorStatePageStyle? style,
  6. required String subTitle,
  7. required String title,
})

Create a Senior StartPage with an image as an illustration. The image must be in svg format. actions The list of action buttons on the state page. imagePath O caminho para a imagem. imageSize O tamanho da imagem na state page. style The style definitions for the component. subTitle The subtitle of the page. title The page title. The imagePath, subTitle and title parameters are required.

Implementation

SeniorStatePageImage({
  Key? key,
  List<SeniorButton>? actions,
  required String imagePath,
  double imageSize = 160.0,
  SeniorStatePageStyle? style,
  required String subTitle,
  required String title,
}) : super(
        key: key,
        actions: actions,
        illustration: SvgPicture.asset(
          imagePath,
          height: 160.0,
        ),
        style: style,
        subTitle: subTitle,
        title: title,
      );