mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-23 20:49:26 +01:00
fix: Startpage textfield padding
This commit is contained in:
parent
81419942dd
commit
81e706aaf5
@ -49,10 +49,14 @@ class _HomeserverPickerState extends State<HomeserverPicker> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final padding = EdgeInsets.symmetric(
|
||||||
|
horizontal: max((MediaQuery.of(context).size.width - 600) / 2, 0),
|
||||||
|
);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Container(
|
title: Container(
|
||||||
height: 40,
|
height: 40,
|
||||||
|
padding: padding,
|
||||||
child: Material(
|
child: Material(
|
||||||
color: Theme.of(context).secondaryHeaderColor,
|
color: Theme.of(context).secondaryHeaderColor,
|
||||||
borderRadius: BorderRadius.circular(32),
|
borderRadius: BorderRadius.circular(32),
|
||||||
@ -79,9 +83,7 @@ class _HomeserverPickerState extends State<HomeserverPicker> {
|
|||||||
),
|
),
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(
|
padding: padding,
|
||||||
horizontal:
|
|
||||||
max((MediaQuery.of(context).size.width - 600) / 2, 0)),
|
|
||||||
child: ListView(
|
child: ListView(
|
||||||
children: [
|
children: [
|
||||||
Hero(
|
Hero(
|
||||||
|
Loading…
Reference in New Issue
Block a user