mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 09:54:19 +01:00
40 lines
692 B
Dart
40 lines
692 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../../data/browser_history.dart';
|
|
import 'webview_controller_interface.dart';
|
|
|
|
class WebInfo {
|
|
String id;
|
|
|
|
String url;
|
|
|
|
bool incognitoMode;
|
|
|
|
bool isSecure;
|
|
|
|
WebInfo(this.id, this.url,
|
|
{this.incognitoMode = false, this.isSecure = false});
|
|
|
|
WebviewControllerInterface? controller;
|
|
|
|
String? title;
|
|
|
|
BrowserHistory? browserHistory;
|
|
|
|
WebInfo clone() {
|
|
var wi = WebInfo(id, url);
|
|
wi.controller = controller;
|
|
wi.title = title;
|
|
wi.browserHistory = browserHistory;
|
|
return wi;
|
|
}
|
|
|
|
Color? getBackgroundColor() {
|
|
if (incognitoMode) {
|
|
return Colors.grey;
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
}
|