Skip to content

Commit

Permalink
Update pubspec + small fixes to make app run
Browse files Browse the repository at this point in the history
  • Loading branch information
jonata97 committed Mar 25, 2024
1 parent b52cf18 commit b2c6b3c
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 54 deletions.
2 changes: 1 addition & 1 deletion ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>9.0</string>
<string>12.0</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
platform :ios, '10.0'
platform :ios, '12.0'

# Disable Firebase Analytics IDFA
# Refs:
Expand Down
21 changes: 10 additions & 11 deletions lib/application/pages/execution/execution_terminal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -256,21 +256,20 @@ class _TerminalQuillEditor extends StatelessWidget {
);

final quillEditor = quill.QuillEditor(
controller: quillController,
focusNode: FocusNode(),
scrollController: scrollController,
scrollable: true,
padding: EdgeInsets.symmetric(
vertical: dimens.terminalWindowHeaderHeight,
horizontal: context.rawSpacing(Spacing.medium),
configurations: quill.QuillEditorConfigurations(
controller: quillController,
scrollable: true,
padding: EdgeInsets.symmetric(
vertical: dimens.terminalWindowHeaderHeight, horizontal: context.rawSpacing(Spacing.medium)),
autoFocus: false,
readOnly: true,
showCursor: false,
expands: false,
enableInteractiveSelection: false,
),
autoFocus: false,
showCursor: false,
readOnly: true,
expands: false,
enableInteractiveSelection: false,
);

return FadeTransition(
opacity: animationController.drive(CurveTween(curve: anims.defaultAnimationCurve)),
child: quillEditor,
Expand Down
6 changes: 3 additions & 3 deletions lib/application/theme/material_theme_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ ThemeData buildThemeData({
elevation: 0,
minimumSize: Size.fromHeight(minButtonHeight),
shape: roundedCornersShape,
primary: primarySwatch,
onPrimary: textColor,
backgroundColor: primarySwatch,
foregroundColor: textColor,
),
);

final textButtonTheme = TextButtonThemeData(
style: TextButton.styleFrom(primary: secondarySwatch.shade400),
style: TextButton.styleFrom(foregroundColor: secondarySwatch.shade400),
);

final iconTheme = IconThemeData(color: iconColor, size: iconSize);
Expand Down
50 changes: 26 additions & 24 deletions lib/application/widgets/theme/rich_text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -379,35 +379,37 @@ class _ThemedEditor extends ConsumerWidget {
final textTheme = Theme.of(context).textTheme;

// Default [quill.DefaultTextBlockStyle] vertical and line spacings.
const zeroTuple = Tuple2<double, double>(0, 0);
const zeroTuple = quill.VerticalSpacing(0, 0);

return quill.QuillEditor(
controller: controller,
scrollController: ScrollController(),
scrollable: true,
focusNode: focus ?? FocusNode(),
autoFocus: !readOnly,
readOnly: readOnly,
expands: false,
padding: EdgeInsets.zero,
enableInteractiveSelection: !readOnly,
showCursor: !readOnly,
placeholder: placeholder,
customStyles: quill.DefaultStyles(
paragraph: quill.DefaultTextBlockStyle(textTheme.bodyText2!, zeroTuple, zeroTuple, null),
placeHolder: quill.DefaultTextBlockStyle(
textTheme.bodyText1!.copyWith(color: theme.neutralSwatch.shade400),
zeroTuple,
zeroTuple,
null,
),
code: quill.DefaultTextBlockStyle(
textTheme.bodyText1!,
zeroTuple,
zeroTuple,
BoxDecoration(color: codeBackgroundColor),
configurations: quill.QuillEditorConfigurations(
controller: controller,
scrollable: true,
padding: EdgeInsets.zero,
autoFocus: !readOnly,
readOnly: readOnly,
expands: false,
enableInteractiveSelection: !readOnly,
showCursor: !readOnly,
placeholder: placeholder,
customStyles: quill.DefaultStyles(
paragraph: quill.DefaultTextBlockStyle(textTheme.bodyText2!, zeroTuple, zeroTuple, null),
placeHolder: quill.DefaultTextBlockStyle(
textTheme.bodyText1!.copyWith(color: theme.neutralSwatch.shade400),
zeroTuple,
zeroTuple,
null,
),
code: quill.DefaultTextBlockStyle(
textTheme.bodyText1!,
zeroTuple,
zeroTuple,
BoxDecoration(color: codeBackgroundColor),
),
),
),
focusNode: focus ?? FocusNode(),
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/application/widgets/theme/secondary_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SecondaryButton extends ConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
return ElevatedButton(
style: ElevatedButton.styleFrom(primary: ref.watch(themeController).neutralSwatch.shade800),
style: ElevatedButton.styleFrom(foregroundColor: ref.watch(themeController).neutralSwatch.shade800),
onPressed: onPressed,
child: child,
);
Expand Down
26 changes: 13 additions & 13 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ dependencies:
path: ^1.8.0
path_provider: ^2.0.9
url_launcher: ^6.0.20
package_info_plus: ^1.4.0
firebase_core: ^1.13.1
firebase_crashlytics: ^2.5.3
firebase_analytics: ^9.1.2
package_info_plus: ^6.0.0
firebase_core: ^2.27.1
firebase_crashlytics: ^3.4.19
firebase_analytics: ^10.8.10

###
# Database & Storage
###
sembast: ^3.2.0
uuid: ^3.0.6
uuid: ^4.3.3

###
# State Management
###
flutter_riverpod: ^1.0.3
flutter_hooks: ^0.18.2+1
hooks_riverpod: ^1.0.3
flutter_riverpod: ^2.5.1
flutter_hooks: ^0.20.5
hooks_riverpod: ^2.5.1
rxdart: ^0.27.3

###
Expand All @@ -50,7 +50,7 @@ dependencies:
layoutr: ^1.0.0

# Keep dependency locked, as we need it to be the exact same in `memo-editor`
flutter_quill: 4.0.10
flutter_quill: ^9.3.3

dev_dependencies:
flutter_test:
Expand All @@ -59,22 +59,22 @@ dev_dependencies:
###
# Lint
###
strict: ^1.4.0
strict: ^2.0.0

###
# Testing
###
mocktail: ^0.3.0
mocktail: ^1.0.3

###
# Icon auto-generator
###
flutter_launcher_icons: "^0.9.0"
flutter_launcher_icons: ^0.13.1

###
# Splash Screen auto-generator
###
flutter_native_splash: "^1.1.8"
flutter_native_splash: ^2.4.0

flutter:
# The following line ensures that the Material Icons font is
Expand Down

0 comments on commit b2c6b3c

Please sign in to comment.