You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
370 B
18 lines
370 B
import 'package:flutter/material.dart';
|
|
|
|
class InfoMessage {
|
|
String message = "";
|
|
Color messageColor = Colors.transparent;
|
|
bool isVisible = false;
|
|
|
|
void displayMessage(String message, bool isError) {
|
|
this.message = message;
|
|
isVisible = true;
|
|
if (isError) {
|
|
messageColor = Colors.red;
|
|
} else {
|
|
messageColor = Colors.green;
|
|
}
|
|
}
|
|
}
|