Jisho-Study-Tool/lib/services/snackbar.dart

5 lines
176 B
Dart
Raw Normal View History

2022-05-04 23:01:53 +02:00
import 'package:flutter/material.dart';
void showSnackbar(BuildContext context, String text) =>
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(text)));