FileSaverStyle constructor
FileSaverStyle({
- FileSaverText? text,
- List<
FileSaverIcon> icons = const [], - Color primaryColor = Colors.blue,
- Color secondaryColor = Colors.white,
- TextStyle primaryTextStyle = const TextStyle(color: Colors.white, fontSize: 20, fontWeight: FontWeight.w600),
- 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();