Rich text editor for Flutter
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.
 
 
 
 
 

13 lines
432 B

import 'package:flutter/material.dart'
show ScaffoldMessenger, ScaffoldMessengerState, SnackBar;
import 'package:flutter/widgets.dart' show BuildContext, Text;
extension ScaffoldMessengerStateExt on ScaffoldMessengerState {
void showText(String text) {
showSnackBar(SnackBar(content: Text(text)));
}
}
extension BuildContextExt on BuildContext {
ScaffoldMessengerState get messenger => ScaffoldMessenger.of(this);
}