19 lines
485 B
Dart
19 lines
485 B
Dart
|
|
import 'package:flutter/material.dart';
|
|
|
|
void showAlreadyConnectedDialog(BuildContext context) {
|
|
showDialog(context: context, builder: (context) {
|
|
return AlertDialog(
|
|
title: const Text('Already connected'),
|
|
content: const Text('This device is already connected'),
|
|
actions: [
|
|
TextButton(
|
|
onPressed: () {
|
|
Navigator.of(context).pop();
|
|
},
|
|
child: const Text('OK'))
|
|
],
|
|
);
|
|
});
|
|
}
|