Remove mentions of ScrollableViewport from flutter_markdown (#8132)
Also, actually run the flutter_markdown tests.
This commit is contained in:
@@ -50,11 +50,14 @@ class Markdown extends MarkdownRaw {
|
||||
}
|
||||
}
|
||||
|
||||
/// A [Widget] that renders markdown formatted text. It supports all standard
|
||||
/// markdowns from the original markdown specification found here:
|
||||
/// https://daringfireball.net/projects/markdown/ This class doesn't implement
|
||||
/// any scrolling behavior, if you want scrolling either wrap the widget in
|
||||
/// a [ScrollableViewport] or use the [Markdown] widget.
|
||||
/// A [Widget] that renders markdown formatted text.
|
||||
///
|
||||
/// It supports all standard markdowns from the original markdown specification
|
||||
/// found here: <https://daringfireball.net/projects/markdown/>
|
||||
///
|
||||
/// This class doesn't implement any scrolling behavior, if you want scrolling
|
||||
/// either wrap the widget in a [SingleChildScrollView] or use the [Markdown]
|
||||
/// widget.
|
||||
class MarkdownBody extends MarkdownBodyRaw {
|
||||
|
||||
/// Creates a new Markdown [Widget] that renders the markdown formatted string
|
||||
|
||||
@@ -80,11 +80,14 @@ class MarkdownRaw extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
|
||||
/// A [Widget] that renders markdown formatted text. It supports all standard
|
||||
/// markdowns from the original markdown specification found here:
|
||||
/// https://daringfireball.net/projects/markdown/ This class doesn't implement
|
||||
/// any scrolling behavior, if you want scrolling either wrap the widget in
|
||||
/// a [ScrollableViewport] or use the [MarkdownRaw] widget.
|
||||
/// A [Widget] that renders markdown formatted text.
|
||||
///
|
||||
/// It supports all standard markdowns from the original markdown specification
|
||||
/// found here: <https://daringfireball.net/projects/markdown/>.
|
||||
///
|
||||
/// This class doesn't implement any scrolling behavior, if you want scrolling
|
||||
/// either wrap the widget in a [SingleChildScrollView] or use the [MarkdownRaw]
|
||||
/// widget.
|
||||
class MarkdownBodyRaw extends StatefulWidget {
|
||||
|
||||
/// Creates a new Markdown [Widget] that renders the markdown formatted string
|
||||
@@ -93,7 +96,7 @@ class MarkdownBodyRaw extends StatefulWidget {
|
||||
/// highlighting, but it's possible to pass in a custom [syntaxHighlighter].
|
||||
///
|
||||
/// Typically, you may want to wrap the [MarkdownBodyRaw] widget in a
|
||||
/// a [ScrollableViewport], or use the [Markdown class].
|
||||
/// a [SingleChildScrollView], or use the [Markdown class].
|
||||
///
|
||||
/// ```dart
|
||||
/// new SingleChildScrollView(
|
||||
|
||||
Reference in New Issue
Block a user