Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shah-xad committed Dec 29, 2023
1 parent 8118fa4 commit b17f81e
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 108 deletions.
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"webview_flutter_wkwebview","path":"/home/shahzad/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.9.4/","native_build":true,"dependencies":[]}],"android":[{"name":"webview_flutter_android","path":"/home/shahzad/.pub-cache/hosted/pub.dev/webview_flutter_android-3.13.0/","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"webview_flutter","dependencies":["webview_flutter_android","webview_flutter_wkwebview"]},{"name":"webview_flutter_android","dependencies":[]},{"name":"webview_flutter_wkwebview","dependencies":[]}],"date_created":"2023-12-17 18:08:31.468948","version":"3.16.4"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"webview_flutter_wkwebview","path":"/home/shahzad/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.9.4/","native_build":true,"dependencies":[]}],"android":[{"name":"webview_flutter_android","path":"/home/shahzad/.pub-cache/hosted/pub.dev/webview_flutter_android-3.13.0/","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"webview_flutter","dependencies":["webview_flutter_android","webview_flutter_wkwebview"]},{"name":"webview_flutter_android","dependencies":[]},{"name":"webview_flutter_wkwebview","dependencies":[]}],"date_created":"2023-12-29 12:48:31.756971","version":"3.16.5"}
2 changes: 1 addition & 1 deletion example/.flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"webview_flutter_wkwebview","path":"/home/shahzad/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.9.4/","native_build":true,"dependencies":[]}],"android":[{"name":"webview_flutter_android","path":"/home/shahzad/.pub-cache/hosted/pub.dev/webview_flutter_android-3.13.0/","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"webview_flutter_web","path":"/home/shahzad/.pub-cache/hosted/pub.dev/webview_flutter_web-0.2.2+3/","dependencies":[]}]},"dependencyGraph":[{"name":"webview_flutter","dependencies":["webview_flutter_android","webview_flutter_wkwebview"]},{"name":"webview_flutter_android","dependencies":[]},{"name":"webview_flutter_web","dependencies":[]},{"name":"webview_flutter_wkwebview","dependencies":[]}],"date_created":"2023-12-17 18:05:16.372759","version":"3.16.4"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"webview_flutter_wkwebview","path":"/home/shahzad/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.9.4/","native_build":true,"dependencies":[]}],"android":[{"name":"webview_flutter_android","path":"/home/shahzad/.pub-cache/hosted/pub.dev/webview_flutter_android-3.13.0/","native_build":true,"dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"webview_flutter_web","path":"/home/shahzad/.pub-cache/hosted/pub.dev/webview_flutter_web-0.2.2+3/","dependencies":[]}]},"dependencyGraph":[{"name":"webview_flutter","dependencies":["webview_flutter_android","webview_flutter_wkwebview"]},{"name":"webview_flutter_android","dependencies":[]},{"name":"webview_flutter_web","dependencies":[]},{"name":"webview_flutter_wkwebview","dependencies":[]}],"date_created":"2023-12-29 12:49:47.215181","version":"3.16.5"}
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\:https://services.gradle.org/distributions/gradle-7.6.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\:https://services.gradle.org/distributions/gradle-7.5-all.zip
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TeXViewFullExample extends StatefulWidget {
const TeXViewFullExample({super.key});

@override
_TeXViewFullExampleState createState() => _TeXViewFullExampleState();
State<TeXViewFullExample> createState() => _TeXViewFullExampleState();
}

class _TeXViewFullExampleState extends State<TeXViewFullExample> {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/tex_view_ink_well_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class TeXViewInkWellExample extends StatefulWidget {
{super.key, this.renderingEngine = const TeXViewRenderingEngine.katex()});

@override
_TeXViewInkWellExampleState createState() => _TeXViewInkWellExampleState();
State<TeXViewInkWellExample> createState() => _TeXViewInkWellExampleState();
}

class _TeXViewInkWellExampleState extends State<TeXViewInkWellExample> {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/tex_view_quiz_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TeXViewQuizExample extends StatefulWidget {
{super.key, this.renderingEngine = const TeXViewRenderingEngine.katex()});

@override
_TeXViewQuizExampleState createState() => _TeXViewQuizExampleState();
State<TeXViewQuizExample> createState() => _TeXViewQuizExampleState();
}

class _TeXViewQuizExampleState extends State<TeXViewQuizExample> {
Expand Down
90 changes: 0 additions & 90 deletions example/lib/webview_web.dart

This file was deleted.

6 changes: 3 additions & 3 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ packages:
path: ".."
relative: true
source: path
version: "4.0.4"
version: "4.0.5"
flutter_web_plugins:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -248,10 +248,10 @@ packages:
dependency: transitive
description:
name: webview_flutter_plus
sha256: e163b0f44f86c79bf801143c3bba4a4b351f4414d52072fe73abcb2a03f49de4
sha256: "54714cdf41b595970cd58b54e1f549f57583c91d9ccb7eb1fef24df9693ab3da"
url: "https://pub.dev"
source: hosted
version: "0.4.3"
version: "0.4.4"
webview_flutter_web:
dependency: "direct main"
description:
Expand Down
9 changes: 4 additions & 5 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: flutter_tex_example
description: A Flutter Package (Demo) to render LaTeX with full HTML and JavaScript support.
homepage: https://github.com/shahxadakram/flutter_tex

version: 1.0.0+1
version: 3.6.7

publish_to: 'none'
publish_to: "none"

environment:
sdk: '>=3.2.3 <4.0.0'
sdk: ">=3.2.3 <4.0.0"
flutter: ">=1.17.0"

dependencies:
flutter:
sdk: flutter
Expand All @@ -22,7 +22,6 @@ dev_dependencies:
sdk: flutter
flutter_lints: ^3.0.1


flutter:
uses-material-design: true
assets:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/views/tex_view_mobile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TeXViewState extends State<TeXView> with AutomaticKeepAliveClientMixin {
_controller = WebViewControllerPlus()
..setJavaScriptMode(JavaScriptMode.unrestricted)
..setBackgroundColor(Color(Colors.transparent.value))
..loadAssetServer(
..loadFlutterAssetServer(
"packages/flutter_tex/js/${widget.renderingEngine?.name ?? 'katex'}/index.html")
..setNavigationDelegate(
NavigationDelegate(
Expand Down
5 changes: 2 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ environment:
flutter: ">=1.17.0"

dependencies:
webview_flutter_plus: ^0.4.3
webview_flutter_plus: ^0.4.4
mime: ^1.0.4
markdown: ^7.1.1
provider: ^6.1.1

flutter:
sdk: flutter
Expand Down Expand Up @@ -227,4 +226,4 @@ flutter:
- packages/flutter_tex/js/katex/fonts/KaTeX_Size4-Regular.woff2
- packages/flutter_tex/js/katex/fonts/KaTeX_Typewriter-Regular.ttf
- packages/flutter_tex/js/katex/fonts/KaTeX_Typewriter-Regular.woff
- packages/flutter_tex/js/katex/fonts/KaTeX_Typewriter-Regular.woff2
- packages/flutter_tex/js/katex/fonts/KaTeX_Typewriter-Regular.woff2

0 comments on commit b17f81e

Please sign in to comment.