canonical / workshops

Workshops
GNU General Public License v3.0
51 stars 11 forks source link

Add splash screen #290

Closed jpnurmi closed 1 year ago

jpnurmi commented 1 year ago

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.

d-loose commented 1 year ago

Very nice, but it's completely unnoticeable in the release version:

https://user-images.githubusercontent.com/113362648/207390342-6e6e8e5f-3e26-414e-be1c-534fe09b486f.mp4

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>
jpnurmi commented 1 year ago

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.

jpnurmi commented 1 year ago

I'll get back to this after: