diff --git a/Cargo.lock b/Cargo.lock index cdccce4cb..e734249de 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4304,7 +4304,7 @@ dependencies = [ [[package]] name = "rdev" version = "0.5.0-2" -source = "git+https://github.com/fufesou/rdev#196b589573f90703a601e6b105dd7c917fc388f9" +source = "git+https://github.com/fufesou/rdev#916e8db3e68dbc0fe95b158c566374b159b9cba8" dependencies = [ "cocoa", "core-foundation 0.9.3", diff --git a/flutter/lib/desktop/widgets/login.dart b/flutter/lib/desktop/widgets/login.dart index 0736f0864..62e6ebc53 100644 --- a/flutter/lib/desktop/widgets/login.dart +++ b/flutter/lib/desktop/widgets/login.dart @@ -107,7 +107,7 @@ class WidgetOP extends StatefulWidget { class _WidgetOPState extends State { Timer? _updateTimer; String _stateMsg = ''; - String _FailedMsg = ''; + String _failedMsg = ''; String _url = ''; @override @@ -140,7 +140,7 @@ class _WidgetOPState extends State { String failedMsg = resultMap['failed_msg']; final String? url = resultMap['url']; final authBody = resultMap['auth_body']; - if (_stateMsg != stateMsg || _FailedMsg != failedMsg) { + if (_stateMsg != stateMsg || _failedMsg != failedMsg) { if (_url.isEmpty && url != null && url.isNotEmpty) { launchUrl(Uri.parse(url)); _url = url; @@ -154,7 +154,7 @@ class _WidgetOPState extends State { setState(() { _stateMsg = stateMsg; - _FailedMsg = failedMsg; + _failedMsg = failedMsg; if (failedMsg.isNotEmpty) { widget.curOP.value = ''; _updateTimer?.cancel(); @@ -166,7 +166,7 @@ class _WidgetOPState extends State { _resetState() { _stateMsg = ''; - _FailedMsg = ''; + _failedMsg = ''; _url = ''; } @@ -190,11 +190,11 @@ class _WidgetOPState extends State { Obx(() { if (widget.curOP.isNotEmpty && widget.curOP.value != widget.config.op) { - _FailedMsg = ''; + _failedMsg = ''; } return Offstage( offstage: - _FailedMsg.isEmpty && widget.curOP.value != widget.config.op, + _failedMsg.isEmpty && widget.curOP.value != widget.config.op, child: Row( children: [ Text( @@ -203,7 +203,7 @@ class _WidgetOPState extends State { ), SizedBox(width: 8), Text( - _FailedMsg, + _failedMsg, style: TextStyle( fontSize: 14, color: Colors.red, diff --git a/flutter/lib/desktop/widgets/remote_menubar.dart b/flutter/lib/desktop/widgets/remote_menubar.dart index ec17b1fbb..1aa2647ee 100644 --- a/flutter/lib/desktop/widgets/remote_menubar.dart +++ b/flutter/lib/desktop/widgets/remote_menubar.dart @@ -1410,10 +1410,10 @@ class _DraggableShowHide extends StatefulWidget { }) : super(key: key); @override - State<_DraggableShowHide> createState() => __DraggableShowHideState(); + State<_DraggableShowHide> createState() => _DraggableShowHideState(); } -class __DraggableShowHideState extends State<_DraggableShowHide> { +class _DraggableShowHideState extends State<_DraggableShowHide> { Offset position = Offset.zero; Size size = Size.zero;