fix: Minor design

This commit is contained in:
Christian Pauly 2021-05-29 09:56:52 +02:00
commit 7a57e06dab
6 changed files with 16 additions and 16 deletions

View file

@ -1,5 +1,6 @@
import 'dart:math';
import 'package:fluffychat/config/themes.dart';
import 'package:flutter/material.dart';
class OnePageCard extends StatelessWidget {
@ -8,11 +9,10 @@ class OnePageCard extends StatelessWidget {
const OnePageCard({Key key, this.child}) : super(key: key);
static const int alpha = 12;
static const int breakpoint = 600;
static num breakpoint = FluffyThemes.columnWidth * 2;
@override
Widget build(BuildContext context) {
return MediaQuery.of(context).size.width <= breakpoint ||
MediaQuery.of(context).size.height <= breakpoint
return MediaQuery.of(context).size.width <= breakpoint
? child
: Material(
color: Theme.of(context).backgroundColor,
@ -41,7 +41,7 @@ class OnePageCard extends StatelessWidget {
vertical:
max((MediaQuery.of(context).size.height - 800) / 2, 12),
),
child: SafeArea(child: Card(child: child)),
child: SafeArea(child: Card(elevation: 1, child: child)),
),
);
}