Change design

This commit is contained in:
Reimar 2024-09-03 09:47:07 +02:00
parent 61586ef169
commit e3a6171ed3
Signed by: Reimar
GPG Key ID: 93549FA07F0AE268

View File

@ -370,8 +370,12 @@ class _MyHomePageState extends State<MyHomePage> {
child: CupertinoSearchTextField( child: CupertinoSearchTextField(
controller: searchBarInput, controller: searchBarInput,
suffixMode: OverlayVisibilityMode.never, suffixMode: OverlayVisibilityMode.never,
backgroundColor: Colors.white.withOpacity(0.9),
placeholder: 'Search city based', placeholder: 'Search city based',
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20),
color: Colors.white.withOpacity(0.9),
boxShadow: const [BoxShadow(color: Color(0x20000000), offset: Offset(0, 1), blurRadius: 4)]
),
), ),
), ),
], ],
@ -396,7 +400,7 @@ class _MyHomePageState extends State<MyHomePage> {
), ),
Positioned( Positioned(
right: 2, right: 2,
bottom: 40, bottom: 50,
child: child:
SizedBox( SizedBox(
width: 50, width: 50,
@ -408,19 +412,23 @@ class _MyHomePageState extends State<MyHomePage> {
Icons.circle, Icons.circle,
color: Colors.white, color: Colors.white,
size: 48.0, size: 48.0,
shadows: [BoxShadow(color: Color(0x20000000), offset: Offset(0, 1), blurRadius: 4)],
), ),
IconButton( Padding(
padding: const EdgeInsets.all(3),
child: IconButton(
icon: const Icon( icon: const Icon(
Icons.location_searching, Icons.location_searching,
color: Colors.blue, color: Colors.blue,
size: 36.0, size: 28.0,
), ),
onPressed: () { onPressed: () {
_getCurrentLocation(); _getCurrentLocation();
}, },
), ),
),
], ],
) ),
), ),
), ),
], ],