Closed jpnurmi closed 1 year ago
Very nice, but it's completely unnoticeable in the release version:
and the title bar throws an exception
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value
#0 State.setState (package:flutter/src/widgets/framework.dart:1134)
#1 _TitleBarLayoutState._syncWindowState.<anonymous closure> (package:title_bar/src/window_title_bar.dart:82)
<asynchronous suspension>
#2 Future.wait.<anonymous closure> (dart:async/future.dart:522)
<asynchronous suspension>
Very nice, but utterly useless! :rofl:
The exception is interesting. It's not clear to me when the result of MethodChannel.invokeMethod()
can be null regardless that the platform plugin never returns null for this method.
I'll get back to this after:
It's an empty
MaterialApp
+Scaffold
+WindowTitleBar
with Yaru theme to bring something minimal with a titlebar visible as soon as possible on app startup.