Fix formatting issues

parent a2a6ed2b
Pipeline #516 passed with stage
in 46 seconds
......@@ -37,8 +37,8 @@ abstract class Bubble extends Item {
final bool isMine;
// Styling
static const padding = const EdgeInsets.all(8);
static const radiusForBorder = const Radius.circular(8);
static const padding = EdgeInsets.all(8);
static const radiusForBorder = Radius.circular(8);
Bubble({
@required this.item,
......
......@@ -27,7 +27,7 @@ import 'bubble.dart';
import 'item.dart';
abstract class MessageBubble extends Bubble {
static const groupTimeLimit = const Duration(minutes: 3);
static const groupTimeLimit = Duration(minutes: 3);
// Styling
static const betweenGroupMargin = 4.0;
......
......@@ -27,7 +27,7 @@ import '../item.dart';
abstract class StateBubble extends Bubble {
static const horizontalMargin = 64;
static const borderRadius = const BorderRadius.all(Bubble.radiusForBorder);
static const borderRadius = BorderRadius.all(Bubble.radiusForBorder);
StateBubble({
@required ChatEvent item,
......
......@@ -17,7 +17,7 @@
import 'package:flutter/material.dart';
final ThemeData lightTheme = new ThemeData(
final ThemeData lightTheme = ThemeData(
primarySwatch: LightColors.red,
brightness: Brightness.light,
primaryColorBrightness: Brightness.dark,
......@@ -35,30 +35,30 @@ class LightColors {
static const _redPrimary = 0xFFAA4139;
static const MaterialColor red = const MaterialColor(
static const MaterialColor red = MaterialColor(
_redPrimary,
const <int, Color>{
50: const Color(0xFFf5E8E7),
100: const Color(0xFFE6C6C4),
200: const Color(0xFFD5A09C),
300: const Color(0xFFC47A74),
400: const Color(0xFFB75E57),
450: const Color(0xFFB15048),
500: const Color(_redPrimary),
600: const Color(0xFFA33B33),
700: const Color(0xFF99322C),
800: const Color(0xFF902A24),
900: const Color(0xFF7F1C17),
<int, Color>{
50: Color(0xFFf5E8E7),
100: Color(0xFFE6C6C4),
200: Color(0xFFD5A09C),
300: Color(0xFFC47A74),
400: Color(0xFFB75E57),
450: Color(0xFFB15048),
500: Color(_redPrimary),
600: Color(0xFFA33B33),
700: Color(0xFF99322C),
800: Color(0xFF902A24),
900: Color(0xFF7F1C17),
},
);
static const userColors = [
const Color(0xFF79740E),
const Color(0xFFB57614),
const Color(0xFF076678),
const Color(0xFF8F3F71),
const Color(0xFF427B58),
const Color(0xFF3C3836),
const Color(0xFFAF3A03),
Color(0xFF79740E),
Color(0xFFB57614),
Color(0xFF076678),
Color(0xFF8F3F71),
Color(0xFF427B58),
Color(0xFF3C3836),
Color(0xFFAF3A03),
];
}
......@@ -47,7 +47,7 @@ class StartBloc {
Username get username => _username;
/// Duration after which a progress indicator should be shown.
static const loadingTime = const Duration(seconds: 3);
static const loadingTime = Duration(seconds: 3);
Future<void> _setHomeserver(Url url) async {
await di.registerHomeserverWith(url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment