Merge branch 'krille/minor-fixes' into 'main'

chore: Follow up new design fixes

See merge request famedly/fluffychat!831
This commit is contained in:
Krille Fear 2022-04-16 05:26:51 +00:00
commit e0fbd0ecb3
2 changed files with 27 additions and 13 deletions

View File

@ -354,10 +354,21 @@ class AppRoutes {
buildTransition: _fadeTransition, buildTransition: _fadeTransition,
), ),
VWidget( VWidget(
path: 'signup', path: 'connect',
widget: const SignupPage(), widget: const ConnectPage(),
buildTransition: _fadeTransition, buildTransition: _fadeTransition,
), stackedRoutes: [
VWidget(
path: 'login',
widget: const Login(),
buildTransition: _fadeTransition,
),
VWidget(
path: 'signup',
widget: const SignupPage(),
buildTransition: _fadeTransition,
),
]),
], ],
), ),
], ],

View File

@ -13,18 +13,21 @@ class LoginScaffold extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
SystemChrome.setSystemUIOverlayStyle( WidgetsBinding.instance?.addPostFrameCallback((_) {
const SystemUiOverlayStyle( SystemChrome.setSystemUIOverlayStyle(
statusBarIconBrightness: Brightness.light, const SystemUiOverlayStyle(
statusBarColor: Colors.transparent, statusBarIconBrightness: Brightness.light,
systemNavigationBarContrastEnforced: false, statusBarColor: Colors.transparent,
systemNavigationBarColor: Colors.transparent, systemNavigationBarContrastEnforced: false,
systemNavigationBarIconBrightness: Brightness.light, systemNavigationBarColor: Colors.black,
), systemNavigationBarIconBrightness: Brightness.light,
); ),
);
});
return Scaffold( return Scaffold(
appBar: appBar, appBar: appBar,
extendBodyBehindAppBar: true, extendBodyBehindAppBar: true,
extendBody: true,
body: Container( body: Container(
decoration: const BoxDecoration( decoration: const BoxDecoration(
image: DecorationImage( image: DecorationImage(