Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ analyzer:
# Locally symlinked sibling package (flutter_markdown_plus_latex) used for
# cross-package development; not part of this package.
- 'flutter_markdown_plus_latex/**'
- build/**
- android/**
- ios/**
- web/**
- windows/**
- macos/**
- linux/**

formatter:
page_width: 120
Expand Down
2 changes: 1 addition & 1 deletion example/integration_test/app_render_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter_markdown_example/main.dart' as app;
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';
import 'package:flutter_test/flutter_test.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/integration_test/markdown_harness.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';

/// Wraps a scrollable [Markdown] widget in a minimal [MaterialApp] so
Expand Down
2 changes: 1 addition & 1 deletion example/lib/demos/basic_markdown_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import 'dart:async';

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter/services.dart';
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/demos/centered_header_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';
import 'package:markdown/markdown.dart' as md;
import '../shared/markdown_demo_widget.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/demos/custom_bullet_list_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208.
// ignore_for_file: avoid_implementing_value_types

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';
import '../shared/markdown_demo_widget.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/demos/extended_emoji_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';
import 'package:markdown/markdown.dart' as md;
import '../shared/markdown_demo_widget.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/demos/markdown_body_shrink_wrap_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208.
// ignore_for_file: avoid_implementing_value_types

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';
import '../shared/dropdown_menu.dart' as dropdown;
import '../shared/markdown_demo_widget.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/demos/minimal_markdown_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208.
// ignore_for_file: avoid_implementing_value_types

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';
import '../shared/markdown_demo_widget.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/demos/original_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208.
// ignore_for_file: avoid_implementing_value_types

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';
import '../shared/markdown_demo_widget.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/demos/subscript_syntax_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208.
// ignore_for_file: avoid_implementing_value_types

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';
import 'package:markdown/markdown.dart' as md;
import '../shared/markdown_demo_widget.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/demos/wrap_alignment_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter/services.dart';
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';
import 'package:markdown/markdown.dart' as md;
Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
/// flutter_markdown_plus package.
library;

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'screens/demo_screen.dart';
import 'screens/home_screen.dart';
import 'shared/markdown_demo_widget.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/readme_excerpts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/cupertino.dart';
import 'package:cupertino_ui/cupertino_ui.dart';
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';

// #docregion CreateMarkdownWithEmojiExtension
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/demo_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import '../screens/demo_screen.dart';
import '../shared/markdown_demo_widget.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/demo_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter_markdown_plus/flutter_markdown_plus.dart';

import '../shared/markdown_demo_widget.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import '../demos/basic_markdown_demo.dart';
import '../demos/centered_header_demo.dart';
import '../demos/custom_bullet_list_demo.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/shared/dropdown_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

// ignore_for_file: public_member_api_docs

Expand Down
2 changes: 1 addition & 1 deletion example/lib/shared/markdown_extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:markdown/markdown.dart' as md;

// ignore_for_file: public_member_api_docs
Expand Down
51 changes: 40 additions & 11 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.19.1"
cupertino_ui:
dependency: "direct main"
description:
name: cupertino_ui
sha256: "7ed8ce4159d342eec4c65f4ea6eec57adaf9365404378541f38efc1da20a5b3d"
url: "https://pub.dev"
source: hosted
version: "1.0.0"
fake_async:
dependency: transitive
description:
Expand All @@ -75,13 +83,18 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_localizations:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
flutter_markdown_plus:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "1.0.8"
version: "1.0.12"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -97,6 +110,14 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
intl:
dependency: transitive
description:
name: intl
sha256: "1ca20c894b1717686a2319b8548763d812bc0aabdac580420a44c5178c57a867"
url: "https://pub.dev"
source: hosted
version: "0.20.3"
leak_tracker:
dependency: transitive
description:
Expand Down Expand Up @@ -133,10 +154,10 @@ packages:
dependency: transitive
description:
name: matcher
sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd"
url: "https://pub.dev"
source: hosted
version: "0.12.19"
version: "0.12.20"
material_color_utilities:
dependency: transitive
description:
Expand All @@ -145,14 +166,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.13.0"
material_ui:
dependency: "direct main"
description:
name: material_ui
sha256: d9b4f6c69b80bc83d0a14357c86e4c14c8076e807ae73cf2960c8560f623995f
url: "https://pub.dev"
source: hosted
version: "1.0.0"
meta:
dependency: transitive
description:
name: meta
sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9"
url: "https://pub.dev"
source: hosted
version: "1.18.0"
version: "1.19.0"
path:
dependency: transitive
description:
Expand Down Expand Up @@ -234,18 +263,18 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11"
url: "https://pub.dev"
source: hosted
version: "0.7.11"
version: "0.7.12"
vector_math:
dependency: transitive
description:
name: vector_math
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
sha256: f36f9f3be64c6198714492bb455c11056e33e2f85d9a0b676a48301e44fdcf47
url: "https://pub.dev"
source: hosted
version: "2.2.0"
version: "2.4.2"
vm_service:
dependency: transitive
description:
Expand All @@ -263,5 +292,5 @@ packages:
source: hosted
version: "3.1.0"
sdks:
dart: ">=3.10.0-0 <4.0.0"
flutter: ">=3.27.1"
dart: ">=3.12.0 <4.0.0"
flutter: ">=3.44.0"
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ environment:
flutter: ">=3.27.1"

dependencies:
cupertino_ui: any
flutter:
sdk: flutter

Expand All @@ -18,8 +19,7 @@ dependencies:
# path: ../../flutter_markdown_plus_latex # For relative path testing

markdown: ^7.3.0


material_ui: any
dev_dependencies:
flutter_test:
sdk: flutter
Expand Down
4 changes: 2 additions & 2 deletions lib/src/_functions_io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import 'dart:io';

import 'package:flutter/cupertino.dart' show CupertinoTheme;
import 'package:flutter/material.dart' show Theme;
import 'package:cupertino_ui/cupertino_ui.dart' show CupertinoTheme;
import 'package:material_ui/material_ui.dart' show Theme;
import 'package:flutter/widgets.dart';

import 'style_sheet.dart';
Expand Down
4 changes: 2 additions & 2 deletions lib/src/_functions_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import 'dart:js_interop';

import 'package:flutter/cupertino.dart' show CupertinoTheme;
import 'package:flutter/material.dart' show Theme;
import 'package:cupertino_ui/cupertino_ui.dart' show CupertinoTheme;
import 'package:material_ui/material_ui.dart' show Theme;
import 'package:flutter/widgets.dart';
import 'package:path/path.dart' as p;

Expand Down
2 changes: 1 addition & 1 deletion lib/src/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.

import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:markdown/markdown.dart' as md;

import '_functions_io.dart' if (dart.library.js_interop) '_functions_web.dart';
Expand Down
4 changes: 2 additions & 2 deletions lib/src/style_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:cupertino_ui/cupertino_ui.dart';
import 'package:material_ui/material_ui.dart';

/// Defines which [TextStyle] objects to use for which Markdown elements.
class MarkdownStyleSheet {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import 'dart:convert';

import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter/rendering.dart';
import 'package:markdown/markdown.dart' as md;

Expand Down
Loading