1
+ import 'dart:developer' ;
2
+ import 'dart:math' as math;
1
3
import 'dart:typed_data' ;
2
4
3
5
import 'package:deedum/address_bar.dart' ;
@@ -9,10 +11,7 @@ import 'package:flutter/material.dart';
9
11
import 'package:flutter/widgets.dart' ;
10
12
import 'package:intl/intl.dart' ;
11
13
12
- import 'dart:developer' ;
13
-
14
14
import 'parser.dart' ;
15
- import 'dart:math' as math;
16
15
17
16
class HistoryEntry {
18
17
final Uri location;
@@ -67,7 +66,8 @@ class BrowserTabState extends State<BrowserTab> {
67
66
super .initState ();
68
67
var initLoc;
69
68
if (initialLocation != null && initialLocation.scheme == "gemini" ) {
70
- initLoc = initialLocation.toString ().replaceFirst (RegExp (r"^gemini://" ), "" );
69
+ initLoc =
70
+ initialLocation.toString ().replaceFirst (RegExp (r"^gemini://" ), "" );
71
71
}
72
72
_controller = TextEditingController (text: initLoc);
73
73
_focusNode = FocusNode ();
@@ -190,12 +190,18 @@ class BrowserTabState extends State<BrowserTab> {
190
190
title: Text ('Logs' ),
191
191
contentPadding: EdgeInsets .zero,
192
192
actions: [
193
- IconButton (
194
- icon : Icon ( Icons .delete ),
193
+ FlatButton (
194
+ child : Text ( 'Clear' ),
195
195
onPressed: () {
196
196
_clearLogs ();
197
197
Navigator .of (context).pop ();
198
- })
198
+ }),
199
+ FlatButton (
200
+ child: Text ('Close' ),
201
+ onPressed: () {
202
+ Navigator .of (context).pop ();
203
+ },
204
+ )
199
205
],
200
206
content: Container (
201
207
width: double .maxFinite,
@@ -214,7 +220,7 @@ class BrowserTabState extends State<BrowserTab> {
214
220
} else if (level == "warn" ) {
215
221
levelColor = Colors .yellowAccent;
216
222
} else {
217
- levelColor = Colors .white ;
223
+ levelColor = Theme . of (context).dialogBackgroundColor ;
218
224
}
219
225
return ListTile (
220
226
title: Text ("[$formatted ] #$requestID " ),
0 commit comments