@@ -79,6 +79,12 @@ class FpSnackbar {
79
79
bool autoDismiss = true ,
80
80
Duration animationDuration = _defaultAnimationDuration,
81
81
Curve ? animationCurve,
82
+ String ? title,
83
+ TextStyle ? textStyle,
84
+ TextStyle ? titleTextStyle,
85
+ Widget ? action,
86
+ int ? contentMaxLines,
87
+ bool centerText = false ,
82
88
}) {
83
89
FpSnackbar ._(
84
90
snackbarDuration: snackbarDuration,
@@ -87,7 +93,12 @@ class FpSnackbar {
87
93
builder: (context) => SnackbarWidget (
88
94
message: message,
89
95
backgroundColor: Colors .green,
90
- centerText: false ,
96
+ centerText: centerText,
97
+ title: title,
98
+ textStyle: textStyle,
99
+ titleTextStyle: titleTextStyle,
100
+ action: action,
101
+ contentMaxLines: contentMaxLines,
91
102
),
92
103
animationDuration: animationDuration,
93
104
animationCurve: animationCurve,
@@ -103,6 +114,12 @@ class FpSnackbar {
103
114
bool autoDismiss = true ,
104
115
Duration animationDuration = _defaultAnimationDuration,
105
116
Curve ? animationCurve,
117
+ String ? title,
118
+ TextStyle ? textStyle,
119
+ TextStyle ? titleTextStyle,
120
+ Widget ? action,
121
+ int ? contentMaxLines,
122
+ bool centerText = false ,
106
123
}) {
107
124
FpSnackbar ._(
108
125
snackbarDuration: snackbarDuration,
@@ -111,7 +128,12 @@ class FpSnackbar {
111
128
builder: (context) => SnackbarWidget (
112
129
message: message,
113
130
backgroundColor: Colors .red,
114
- centerText: false ,
131
+ centerText: centerText,
132
+ title: title,
133
+ textStyle: textStyle,
134
+ titleTextStyle: titleTextStyle,
135
+ action: action,
136
+ contentMaxLines: contentMaxLines,
115
137
),
116
138
animationDuration: animationDuration,
117
139
animationCurve: animationCurve,
@@ -127,6 +149,12 @@ class FpSnackbar {
127
149
bool autoDismiss = true ,
128
150
Duration animationDuration = _defaultAnimationDuration,
129
151
Curve ? animationCurve,
152
+ String ? title,
153
+ TextStyle ? textStyle,
154
+ TextStyle ? titleTextStyle,
155
+ Widget ? action,
156
+ int ? contentMaxLines,
157
+ bool centerText = false ,
130
158
}) {
131
159
FpSnackbar ._(
132
160
snackbarDuration: snackbarDuration,
@@ -135,7 +163,12 @@ class FpSnackbar {
135
163
builder: (context) => SnackbarWidget (
136
164
message: message,
137
165
backgroundColor: Colors .orange,
138
- centerText: false ,
166
+ centerText: centerText,
167
+ title: title,
168
+ textStyle: textStyle,
169
+ titleTextStyle: titleTextStyle,
170
+ action: action,
171
+ contentMaxLines: contentMaxLines,
139
172
),
140
173
animationDuration: animationDuration,
141
174
animationCurve: animationCurve,
@@ -237,7 +270,10 @@ class SnackbarInfo {
237
270
bool operator == (Object other) {
238
271
if (identical (this , other)) return true ;
239
272
240
- return other is SnackbarInfo && other.key == key && other.createdAt == createdAt && other.entry == entry;
273
+ return other is SnackbarInfo &&
274
+ other.key == key &&
275
+ other.createdAt == createdAt &&
276
+ other.entry == entry;
241
277
}
242
278
243
279
@override
0 commit comments