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

5 lines
176 B
Dart

import 'package:flutter/material.dart';
void showSnackbar(BuildContext context, String text) =>
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(text)));