saminsohag

tex_markown package added

1 ## 0.0.1 1 ## 0.0.1
2 2
3 -* TODO: Describe initial release. 3 +* Limited markdown support and latex formula support.
1 -TODO: Add your license here. 1 +MIT License
  2 +
  3 +Copyright 2022 Samin Sohag
  4 +
  5 +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  6 +
  7 +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  8 +
  9 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -46,14 +46,22 @@ flutter pub add tex_markdown @@ -46,14 +46,22 @@ flutter pub add tex_markdown
46 46
47 ## Usage 47 ## Usage
48 48
49 -[documentation]() 49 +Check the documentation [here.](https://github.com/saminsohag/flutter_packages/tree/main/tex_markdown/example)
50 50
51 ```dart 51 ```dart
52 -const like = 'sample'; 52 +import 'package:flutter/material.dart';
  53 +import 'package:tex_markdown/tex_markdown.dart';
  54 +
  55 +return TexMarkdown(
  56 + '''
  57 + * This is a unordered list.
  58 + ''',
  59 + style: const TextStyle(
  60 + color: Colors.red,
  61 +),
  62 +
53 ``` 63 ```
54 64
55 ## Additional information 65 ## Additional information
56 66
57 -TODO: Tell users more about the package: where to find more information, how to  
58 -contribute to the package, how to file issues, what response they can expect  
59 -from the package authors, and more. 67 +You can find the source code [here.](https://github.com/saminsohag/flutter_packages/tree/main/tex_markdown)
1 name: tex_markdown 1 name: tex_markdown
2 -description: A new Flutter package project. 2 +description: This package is used to create flutter widget that can render markdown and latex formulas. It is very simple to use and uses native flutter components.
3 version: 0.0.1 3 version: 0.0.1
4 -homepage: 4 +homepage: https://github.com/saminsohag/flutter_packages/tree/main/tex_markdown
5 5
6 environment: 6 environment:
7 sdk: '>=2.18.6 <3.0.0' 7 sdk: '>=2.18.6 <3.0.0'
@@ -17,39 +17,4 @@ dev_dependencies: @@ -17,39 +17,4 @@ dev_dependencies:
17 sdk: flutter 17 sdk: flutter
18 flutter_lints: ^2.0.0 18 flutter_lints: ^2.0.0
19 19
20 -# For information on the generic Dart part of this file, see the  
21 -# following page: https://dart.dev/tools/pub/pubspec  
22 -  
23 -# The following section is specific to Flutter packages.  
24 -flutter:  
25 -  
26 - # To add assets to your package, add an assets section, like this:  
27 - # assets:  
28 - # - images/a_dot_burr.jpeg  
29 - # - images/a_dot_ham.jpeg  
30 - #  
31 - # For details regarding assets in packages, see  
32 - # https://flutter.dev/assets-and-images/#from-packages  
33 - #  
34 - # An image asset can refer to one or more resolution-specific "variants", see  
35 - # https://flutter.dev/assets-and-images/#resolution-aware  
36 -  
37 - # To add custom fonts to your package, add a fonts section here,  
38 - # in this "flutter" section. Each entry in this list should have a  
39 - # "family" key with the font family name, and a "fonts" key with a  
40 - # list giving the asset and other descriptors for the font. For  
41 - # example:  
42 - # fonts:  
43 - # - family: Schyler  
44 - # fonts:  
45 - # - asset: fonts/Schyler-Regular.ttf  
46 - # - asset: fonts/Schyler-Italic.ttf  
47 - # style: italic  
48 - # - family: Trajan Pro  
49 - # fonts:  
50 - # - asset: fonts/TrajanPro.ttf  
51 - # - asset: fonts/TrajanPro_Bold.ttf  
52 - # weight: 700  
53 - #  
54 - # For details regarding fonts in packages, see  
55 - # https://flutter.dev/custom-fonts/#from-packages 20 +flutter: