HyM attachments resolve: #2 #3
@ -1,8 +1,10 @@
|
|||||||
import 'package:crab_ui/api_service.dart';
|
import 'package:crab_ui/api_service.dart';
|
||||||
import 'package:crab_ui/structs.dart';
|
import 'package:crab_ui/structs.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:pointer_interceptor/pointer_interceptor.dart';
|
||||||
import 'dart:html' as html;
|
import 'dart:html' as html;
|
||||||
import 'dart:js' as js;
|
import 'dart:js' as js;
|
||||||
|
import 'package:pointer_interceptor/pointer_interceptor.dart';
|
||||||
|
|
||||||
class EmailToolbar extends StatefulWidget {
|
class EmailToolbar extends StatefulWidget {
|
||||||
final Function(String) onJumpToSpan;
|
final Function(String) onJumpToSpan;
|
||||||
@ -228,19 +230,14 @@ class AugmentClasses {
|
|||||||
builder: (context) => Stack(
|
builder: (context) => Stack(
|
||||||
children: [
|
children: [
|
||||||
// Dimmed background
|
// Dimmed background
|
||||||
GestureDetector(
|
Container(
|
||||||
onTap: () => _overlayEntry?.remove(),
|
|
||||||
child: Container(
|
|
||||||
color: Colors.black54,
|
color: Colors.black54,
|
||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width,
|
||||||
height: MediaQuery.of(context).size.height,
|
height: MediaQuery.of(context).size.height,
|
||||||
),
|
),
|
||||||
),
|
|
||||||
// Focused content window
|
// Focused content window
|
||||||
Center(
|
PointerInterceptor(
|
||||||
child: Positioned(
|
child: Center(
|
||||||
left: offset.dx + 500,
|
|
||||||
top: offset.dy + renderBox.size.height + 100,
|
|
||||||
child: Material(
|
child: Material(
|
||||||
elevation: 8,
|
elevation: 8,
|
||||||
borderRadius: BorderRadius.circular(12),
|
borderRadius: BorderRadius.circular(12),
|
||||||
@ -251,7 +248,7 @@ class AugmentClasses {
|
|||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
_buildHeader(),
|
_buildHeader(context),
|
||||||
const Divider(height: 1),
|
const Divider(height: 1),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: ListView(
|
child: ListView(
|
||||||
@ -263,7 +260,7 @@ class AugmentClasses {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@ -273,17 +270,25 @@ class AugmentClasses {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add missing widget builder methods
|
// Add missing widget builder methods
|
||||||
static Widget _buildHeader() {
|
static Widget _buildHeader(BuildContext context) {
|
||||||
return const Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.all(16.0),
|
padding: EdgeInsets.all(16.0),
|
||||||
child: Text(
|
child:
|
||||||
|
Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
|
||||||
|
Text(
|
||||||
'Thread Attachments',
|
'Thread Attachments',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
CloseButton(
|
||||||
|
onPressed: () {
|
||||||
|
_overlayEntry?.remove();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
static List<Widget> _buildMenuItem() {
|
static List<Widget> _buildMenuItem() {
|
||||||
@ -293,7 +298,9 @@ class AugmentClasses {
|
|||||||
leading: Icon(Icons.file_present),
|
leading: Icon(Icons.file_present),
|
||||||
title: Text(file.name.toString()),
|
title: Text(file.name.toString()),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
_overlayEntry?.remove();
|
print("rick rolled");
|
||||||
|
html.window
|
||||||
|
.open("https://www.youtube.com/watch?v=xvFZjo5PgG0", "testing");
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
return listOfFiles;
|
return listOfFiles;
|
||||||
|
Loading…
Reference in New Issue
Block a user