fix remember peer card view type
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
e9b212ebd7
commit
752d84ffb0
@ -28,14 +28,16 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
|
|
||||||
setPeer() {
|
setPeer() {
|
||||||
final index = bind.getLocalFlutterConfig(k: 'peer-tab-index');
|
final index = bind.getLocalFlutterConfig(k: 'peer-tab-index');
|
||||||
if (index == '') return;
|
if (index != '') {
|
||||||
_tabIndex.value = int.parse(index);
|
_tabIndex.value = int.parse(index);
|
||||||
|
}
|
||||||
|
|
||||||
final uiType = bind.getLocalFlutterConfig(k: 'peer-card-ui-type');
|
final uiType = bind.getLocalFlutterConfig(k: 'peer-card-ui-type');
|
||||||
if (uiType == '') return;
|
if (uiType != '') {
|
||||||
peerCardUiType.value = int.parse(uiType) == PeerUiType.list.index
|
peerCardUiType.value = int.parse(uiType) == PeerUiType.list.index
|
||||||
? PeerUiType.list
|
? PeerUiType.list
|
||||||
: PeerUiType.grid;
|
: PeerUiType.grid;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// hard code for now
|
// hard code for now
|
||||||
|
Loading…
x
Reference in New Issue
Block a user