From 66a74f6801a6a21a52c54899efd4baa05ed89454 Mon Sep 17 00:00:00 2001 From: Feodor Fitsner Date: Tue, 4 Mar 2025 10:37:15 -0800 Subject: [PATCH] Test get_pyproject() --- {{cookiecutter.out_dir}}/lib/main.dart | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/{{cookiecutter.out_dir}}/lib/main.dart b/{{cookiecutter.out_dir}}/lib/main.dart index b59fb47..7edae6e 100644 --- a/{{cookiecutter.out_dir}}/lib/main.dart +++ b/{{cookiecutter.out_dir}}/lib/main.dart @@ -25,6 +25,8 @@ import "python.dart"; loading_screen: {{ loading_screen }} loading_screen_text: {{ loading_screen_text }} + +test: {{ cookiecutter.get_pyproject("tool.flet.loading_screen_text") }} */ {% for dep in cookiecutter.flutter.dependencies %} @@ -314,20 +316,20 @@ class SplashScreen extends StatelessWidget { @override Widget build(BuildContext context) { - return const Scaffold( + return Scaffold( body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - SizedBox( - width: 24, - height: 24, + const SizedBox( + width: 30, + height: 30, child: CircularProgressIndicator(strokeWidth: 3), ), - SizedBox( - height: 12, + const SizedBox( + height: 10, ), - Text("{% if splash_screen_text %}{{ splash_screen_text }}{% else %}Getting things ready…{% endif %}") + Text("{% if splash_screen_text %}{{ splash_screen_text }}{% else %}Getting things ready…{% endif %}", style: Theme.of(context).textTheme.bodySmall,) ], ), ),