mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-22 14:59:12 +00:00
23 lines
No EOL
665 B
Dart
23 lines
No EOL
665 B
Dart
import 'package:adguard_home_manager/widgets/add_server_modal.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class FabConnect extends StatelessWidget {
|
|
const FabConnect({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
void openAddServerModal() async {
|
|
await Future.delayed(const Duration(seconds: 0), (() => {
|
|
Navigator.push(context, MaterialPageRoute(
|
|
fullscreenDialog: true,
|
|
builder: (BuildContext context) => const AddServerModal()
|
|
))
|
|
}));
|
|
}
|
|
|
|
return FloatingActionButton(
|
|
onPressed: openAddServerModal,
|
|
child: const Icon(Icons.add_rounded),
|
|
);
|
|
}
|
|
} |