Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneWithTheBraid committed May 30, 2021
1 parent 94338ae commit 6a902e5
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 90 deletions.
108 changes: 46 additions & 62 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,44 @@ const TextStyle kEmphasisFont = TextStyle(
height: 1.22,
letterSpacing: 1.8);

final kTextTheme = TextTheme(
headline1: kHugeFont,
headline2: kHugeFont,
headline3: kLargeFont
.copyWith(color: kDarkColor)
.copyWith(fontSize: kLargeFontSize * kFontSizeDivision),
headline4: kLargeFont.copyWith(color: kDarkColor),
headline5: kLargeFont.copyWith(color: kDarkColor),
headline6: kLargeFont.copyWith(color: kDarkColor),
bodyText1: kBodyFont,
bodyText2: kEmphasisFont,
caption: kEmphasisFont,
button: kEmphasisFont,
);

final kColorScheme = ColorScheme(
primary: kPrimaryColor,
primaryVariant: kPrimaryColorAccent,
secondary: kSecondaryColor,
secondaryVariant: kSecondaryColorAccent,
surface: kDarkColor,
background: kDarkColor,
error: Colors.deepOrange,
onPrimary: kLightColor,
onSecondary: kDarkColor,
onSurface: kDarkColor,
onBackground: kLightColor,
onError: kLightColor,
brightness: Brightness.dark);

final kDialogTheme =
DialogTheme(titleTextStyle: kLargeFont.copyWith(color: kLightColor));

final kSnackBarTheme = SnackBarThemeData(
backgroundColor: kDarkColor,
actionTextColor: kSecondaryColorAccent,
contentTextStyle: kBodyFont);

class XournalppMobile extends StatelessWidget {
// This widget is the root of your application.
@override
Expand All @@ -76,75 +114,21 @@ class XournalppMobile extends StatelessWidget {
primarySwatch: kPrimaryColor,
accentColor: kSecondaryColor,
fontFamily: 'Open Sans',
textTheme: TextTheme(
headline1: kHugeFont,
headline2: kHugeFont,
headline3: kLargeFont
.copyWith(color: kDarkColor)
.copyWith(fontSize: kLargeFontSize * kFontSizeDivision),
headline4: kLargeFont.copyWith(color: kDarkColor),
headline5: kLargeFont.copyWith(color: kDarkColor),
headline6: kLargeFont.copyWith(color: kDarkColor),
bodyText1: kBodyFont,
bodyText2: kEmphasisFont,
caption: kEmphasisFont,
button: kEmphasisFont,
),
colorScheme: ColorScheme(
primary: kPrimaryColor,
primaryVariant: kPrimaryColorAccent,
secondary: kSecondaryColor,
secondaryVariant: kSecondaryColorAccent,
surface: kLightColor,
background: kDarkColor,
error: Colors.deepOrange,
onPrimary: kLightColor,
onSecondary: kDarkColor,
onSurface: kDarkColor,
onBackground: kLightColor,
onError: kLightColor,
brightness: Brightness.light),
textTheme: kTextTheme,
colorScheme: kColorScheme,
visualDensity: VisualDensity.adaptivePlatformDensity,
dialogTheme: DialogTheme(
titleTextStyle: kLargeFont.copyWith(color: kDarkColor))),
dialogTheme: kDialogTheme,
snackBarTheme: kSnackBarTheme),
darkTheme: ThemeData(
brightness: Brightness.dark,
primarySwatch: kPrimaryColor,
accentColor: kSecondaryColor,
fontFamily: 'Open Sans',
textTheme: TextTheme(
headline1: kHugeFont,
headline2: kHugeFont,
headline3: kLargeFont.copyWith(color: kLightColor),
headline4: kLargeFont.copyWith(color: kLightColor),
headline5: kLargeFont.copyWith(color: kLightColor),
headline6: kLargeFont.copyWith(color: kLightColor),
bodyText1: kBodyFont,
bodyText2: kEmphasisFont,
caption: kEmphasisFont,
button: kEmphasisFont,
),
colorScheme: ColorScheme(
primary: kPrimaryColor,
primaryVariant: kPrimaryColorAccent,
secondary: kSecondaryColor,
secondaryVariant: kSecondaryColorAccent,
surface: kDarkColor,
background: kDarkColor,
error: Colors.deepOrange,
onPrimary: kLightColor,
onSecondary: kDarkColor,
onSurface: kDarkColor,
onBackground: kLightColor,
onError: kLightColor,
brightness: Brightness.dark),
textTheme: kTextTheme,
colorScheme: kColorScheme,
visualDensity: VisualDensity.adaptivePlatformDensity,
dialogTheme: DialogTheme(
titleTextStyle: kLargeFont.copyWith(color: kLightColor)),
snackBarTheme: SnackBarThemeData(
backgroundColor: kDarkColor,
actionTextColor: kSecondaryColorAccent,
contentTextStyle: kBodyFont)),
dialogTheme: kDialogTheme,
snackBarTheme: kSnackBarTheme),
home: OpenPage(),
);
}
Expand Down
2 changes: 0 additions & 2 deletions linux/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Generated file. Do not edit.
//

// clang-format off

#include "generated_plugin_registrant.h"

#include <file_chooser/file_chooser_plugin.h>
Expand Down
2 changes: 0 additions & 2 deletions linux/flutter/generated_plugin_registrant.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Generated file. Do not edit.
//

// clang-format off

#ifndef GENERATED_PLUGIN_REGISTRANT_
#define GENERATED_PLUGIN_REGISTRANT_

Expand Down
2 changes: 0 additions & 2 deletions macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Generated file. Do not edit.
//

// clang-format off

import FlutterMacOS
import Foundation

Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.6.1"
barcode:
dependency: transitive
description:
Expand Down Expand Up @@ -762,7 +762,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.3.0"
transparent_image:
dependency: "direct main"
description:
Expand Down
32 changes: 16 additions & 16 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,34 @@ environment:
dependencies:
flutter:
sdk: flutter
file_picker_cross: ^4.2.8
katex_flutter: ^4.0.0
intl: ^0.16.1
archive: ^2.0.13
xml: ^4.2.0
file_picker_cross: ^4.4.2
katex_flutter: ^4.0.2+26
intl: ^0.17.0
archive: ^3.1.2
xml: ^5.1.1
url_launcher: ^5.5.0
transparent_image: ^1.0.0
transparent_image: ^2.0.0
# catcher: ^0.4.0
receive_sharing_intent: ^1.4.0
receive_sharing_intent: ^1.4.5
after_init: ^0.1.2
flutter_dropzone: ^1.0.7
shared_preferences: ^0.5.8
flutter_dropzone: ^2.0.1
shared_preferences: ^2.0.6
flutter_absolute_path: 1.0.6
matrix_gesture_detector: ^0.1.0
vector_math: ^2.0.8
dwds: ^0.4.0
flutter_colorpicker: ^0.3.4
package_info: ^0.4.1
printing: ^4.0.0
pdf: ^2.0.0
vector_math: ^2.1.0
dwds: ^11.0.2
flutter_colorpicker: ^0.4.0
package_info: ^2.0.2
printing: ^5.2.1
pdf: ^3.3.0
# zefyr: ^0.12.0
# notus: ^0.1.5

dev_dependencies:
flutter_test:
sdk:
flutter
flutter_launcher_icons: "^0.7.3"
flutter_launcher_icons: ^0.9.0

flutter_icons:
android: true
Expand Down
2 changes: 0 additions & 2 deletions windows/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Generated file. Do not edit.
//

// clang-format off

#include "generated_plugin_registrant.h"

#include <file_chooser/file_chooser_plugin.h>
Expand Down
2 changes: 0 additions & 2 deletions windows/flutter/generated_plugin_registrant.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Generated file. Do not edit.
//

// clang-format off

#ifndef GENERATED_PLUGIN_REGISTRANT_
#define GENERATED_PLUGIN_REGISTRANT_

Expand Down

0 comments on commit 6a902e5

Please sign in to comment.