-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a74b540
commit a504319
Showing
8 changed files
with
55 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class Keys { | ||
static const ValueKey scanForDevicesButton = ValueKey('scanForDevicesButton'); | ||
static const ValueKey scanForOpenPortsButton = | ||
ValueKey('scanForOpenPortsButton'); | ||
static const ValueKey rescanIconButton = ValueKey('rescanIconButton'); | ||
static const ValueKey portScanButton = ValueKey('portScanButton'); | ||
static const ValueKey routerOrGatewayTileIconButton = | ||
ValueKey('Router/Gateway'); | ||
static const ValueKey rangePortScanRadioButton = | ||
ValueKey('rangePortScanRadioButton'); | ||
static const ValueKey knownPortChip = ValueKey('knowPortChip'); | ||
static const ValueKey shortPortChip = ValueKey('shortPortChip'); | ||
static const ValueKey veryShortPortChip = ValueKey('veryShortPortChip'); | ||
static const ValueKey fullPortChip = ValueKey('fullPortChip'); | ||
static const ValueKey localIpChip = ValueKey('localIpChip'); | ||
static const ValueKey googleChip = ValueKey('googleChip'); | ||
static const ValueKey youtubeChip = ValueKey('youtubeChip'); | ||
static const ValueKey appleChip = ValueKey('appleChip'); | ||
static const ValueKey amazonChip = ValueKey('amazonChip'); | ||
static const ValueKey cloudflareChip = ValueKey('cloudflareChip'); | ||
enum WidgetKey implements Comparable<WidgetKey> { | ||
routerOrGatewayTileIconButton('routerOrGatewayTileIconButton'), | ||
rangePortScanRadioButton('rangePortScanRadioButton'), | ||
scanForOpenPortsButton('scanForOpenPortsButton'), | ||
scanForDevicesButton('scanForDevicesButton'), | ||
veryShortPortChip('veryShortPortChip'), | ||
rescanIconButton('rescanIconButton'), | ||
portScanButton('portScanButton'), | ||
cloudflareChip('cloudflareChip'), | ||
knownPortChip('knownPortChip'), | ||
shortPortChip('shortPortChip'), | ||
fullPortChip('fullPortChip'), | ||
youtubeChip('youtubeChip'), | ||
localIpChip('localIpChip'), | ||
googleChip('googleChip'), | ||
amazonChip('amazonChip'), | ||
appleChip('appleChip'); | ||
|
||
const WidgetKey(this.value); | ||
final String value; | ||
ValueKey get key => ValueKey(value); | ||
|
||
@override | ||
int compareTo(WidgetKey other) => value.compareTo(other.value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters