52 lines
1.6 KiB
Dart
52 lines
1.6 KiB
Dart
// // lib/overlays/bubble_overlay.dart
|
|
// import 'package:flutter/material.dart';
|
|
// import 'package:flutter_overlay_window_sdk34/flutter_overlay_window_sdk34.dart';
|
|
|
|
// @pragma('vm:entry-point')
|
|
// void overlayMain() {
|
|
// runApp(const BubbleOverlay());
|
|
// }
|
|
|
|
// class BubbleOverlay extends StatelessWidget {
|
|
// const BubbleOverlay({super.key});
|
|
|
|
// @override
|
|
// Widget build(BuildContext context) {
|
|
// return MaterialApp(
|
|
// debugShowCheckedModeBanner: false,
|
|
// home: Scaffold(
|
|
// backgroundColor: Colors.transparent,
|
|
// body: SafeArea(
|
|
// child: Align(
|
|
// alignment: Alignment.bottomRight,
|
|
// child: GestureDetector(
|
|
// onTap: () async {
|
|
// // Tutup bubble & buka app utama
|
|
// await FlutterOverlayWindow.closeOverlay();
|
|
|
|
// },
|
|
// child: Container(
|
|
// margin: const EdgeInsets.all(12),
|
|
// decoration: const BoxDecoration(
|
|
// color: Colors.blueAccent,
|
|
// shape: BoxShape.circle,
|
|
// boxShadow: [
|
|
// BoxShadow(
|
|
// color: Colors.black26,
|
|
// blurRadius: 6,
|
|
// offset: Offset(2, 3),
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// width: 70,
|
|
// height: 70,
|
|
// child: const Icon(Icons.account_balance_wallet_rounded, color: Colors.black, size: 40),
|
|
// ),
|
|
// ),
|
|
// ),
|
|
// ),
|
|
// ),
|
|
// );
|
|
// }
|
|
// }
|