FileSaverStyle constructor

FileSaverStyle({
  1. FileSaverText? text,
  2. List<FileSaverIcon> icons = const [],
  3. Color primaryColor = Colors.blue,
  4. Color secondaryColor = Colors.white,
  5. TextStyle primaryTextStyle = const TextStyle(color: Colors.white, fontSize: 20, fontWeight: FontWeight.w600),
  6. TextStyle secondaryTextStyle = const TextStyle(color: Colors.black87, fontWeight: FontWeight.bold),
})

Contains optional Color, TextStyle, FileSaverIcon and FileSaverText.

FileSaverStyle style = FileSaverStyle(
  primaryColor: Colors.orange,
  text: FileSaverText(
    popupNo: 'Nay',
    popupYes: 'Sí',
  ),
  icons: [
    FileSaverIcon.file(
      icon: (path) => Image.file(File(path)),
      fileType: 'jpg',
    )
  ]
);

Implementation

FileSaverStyle({
  FileSaverText? text,
  this.icons = const [],
  this.primaryColor = Colors.blue,
  this.secondaryColor = Colors.white,
  this.primaryTextStyle = const TextStyle(
      color: Colors.white, fontSize: 20, fontWeight: FontWeight.w600),
  this.secondaryTextStyle =
      const TextStyle(color: Colors.black87, fontWeight: FontWeight.bold),
}) : text = text ?? FileSaverText();