mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-05 02:39:26 +01:00
fix: Change size
This commit is contained in:
parent
be08de5ef0
commit
83e238551c
@ -1,8 +1,14 @@
|
|||||||
|
import 'package:adaptive_page_layout/adaptive_page_layout.dart';
|
||||||
|
import 'package:fluffychat/components/matrix.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class LoadingView extends StatelessWidget {
|
class LoadingView extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
if (Matrix.of(context).loginState != null) {
|
||||||
|
WidgetsBinding.instance.addPostFrameCallback((_) =>
|
||||||
|
AdaptivePageLayout.of(context).pushNamedAndRemoveAllOthers('/'));
|
||||||
|
}
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
body: Center(
|
body: Center(
|
||||||
child: CircularProgressIndicator(),
|
child: CircularProgressIndicator(),
|
||||||
|
@ -83,6 +83,7 @@ add_custom_command(
|
|||||||
${FLUTTER_TOOL_ENVIRONMENT}
|
${FLUTTER_TOOL_ENVIRONMENT}
|
||||||
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh"
|
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh"
|
||||||
linux-x64 ${CMAKE_BUILD_TYPE}
|
linux-x64 ${CMAKE_BUILD_TYPE}
|
||||||
|
VERBATIM
|
||||||
)
|
)
|
||||||
add_custom_target(flutter_assemble DEPENDS
|
add_custom_target(flutter_assemble DEPENDS
|
||||||
"${FLUTTER_LIBRARY}"
|
"${FLUTTER_LIBRARY}"
|
||||||
|
@ -48,7 +48,7 @@ static void my_application_activate(GApplication* application) {
|
|||||||
gtk_window_set_title(window, "fluffychat");
|
gtk_window_set_title(window, "fluffychat");
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_window_set_default_size(window, 802, 520);
|
gtk_window_set_default_size(window, 1280, 720);
|
||||||
gtk_widget_show(GTK_WIDGET(window));
|
gtk_widget_show(GTK_WIDGET(window));
|
||||||
|
|
||||||
g_autoptr(FlDartProject) project = fl_dart_project_new();
|
g_autoptr(FlDartProject) project = fl_dart_project_new();
|
||||||
|
Loading…
Reference in New Issue
Block a user