From 9ac1a955ba1c78d820426e6c72c33502ec92285c Mon Sep 17 00:00:00 2001 From: open-trade Date: Tue, 25 Jan 2022 19:04:59 +0800 Subject: [PATCH] smaller search box --- lib/home_page.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/home_page.dart b/lib/home_page.dart index 7f4778c88..09da3d04b 100644 --- a/lib/home_page.dart +++ b/lib/home_page.dart @@ -126,7 +126,7 @@ class _HomePageState extends State { if (!FFI.ffiModel.initialized) { return Container(); } - return Padding( + var w = Padding( padding: const EdgeInsets.fromLTRB(16.0, 8.0, 16.0, 0.0), child: Container( height: 84, @@ -195,6 +195,9 @@ class _HomePageState extends State { ), ), ); + if (!isWeb) return w; + return Center( + child: Container(constraints: BoxConstraints(maxWidth: 600), child: w)); } @override