Skip to content

Commit

Permalink
inital changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alihassan143 committed Apr 10, 2023
0 parents commit ce6f04f
Show file tree
Hide file tree
Showing 11 changed files with 613 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .flutter-plugins
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This is a generated file; do not edit or check into version control.
printing=/Users/mac/.pub-cache/hosted/pub.dev/printing-5.10.3/
1 change: 1 addition & 0 deletions .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"printing","path":"/Users/mac/.pub-cache/hosted/pub.dev/printing-5.10.3/","native_build":true,"dependencies":[]}],"android":[{"name":"printing","path":"/Users/mac/.pub-cache/hosted/pub.dev/printing-5.10.3/","native_build":true,"dependencies":[]}],"macos":[{"name":"printing","path":"/Users/mac/.pub-cache/hosted/pub.dev/printing-5.10.3/","native_build":true,"dependencies":[]}],"linux":[{"name":"printing","path":"/Users/mac/.pub-cache/hosted/pub.dev/printing-5.10.3/","native_build":true,"dependencies":[]}],"windows":[{"name":"printing","path":"/Users/mac/.pub-cache/hosted/pub.dev/printing-5.10.3/","native_build":true,"dependencies":[]}],"web":[{"name":"printing","path":"/Users/mac/.pub-cache/hosted/pub.dev/printing-5.10.3/","dependencies":[]}]},"dependencyGraph":[{"name":"printing","dependencies":[]}],"date_created":"2023-04-10 15:14:19.648175","version":"3.7.10"}
30 changes: 30 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
/pubspec.lock
**/doc/api/
.dart_tool/
.packages
build/
10 changes: 10 additions & 0 deletions .metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.

version:
revision: 4b12645012342076800eb701bcdfe18f87da21cf
channel: stable

project_type: package
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.0.1

* TODO: Describe initial release.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO: Add your license here.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--
This README describes the package. If you publish this package to pub.dev,
this README's contents appear on the landing page for your package.
For information about how to write a good package README, see the guide for
[writing package pages](https://dart.dev/guides/libraries/writing-package-pages).
For general information about developing packages, see the Dart guide for
[creating packages](https://dart.dev/guides/libraries/create-library-packages)
and the Flutter guide for
[developing packages and plugins](https://flutter.dev/developing-packages).
-->

TODO: Put a short description of the package here that helps potential users
know whether this package might be useful for them.

## Features

TODO: List what your package can do. Maybe include images, gifs, or videos.

## Getting started

TODO: List prerequisites and provide or point to information on how to
start using the package.

## Usage

TODO: Include short and useful examples for package users. Add longer examples
to `/example` folder.

```dart
const like = 'sample';
```

## Additional information

TODO: Tell users more about the package: where to find more information, how to
contribute to the package, how to file issues, what response they can expect
from the package authors, and more.
4 changes: 4 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include: package:flutter_lints/flutter.yaml

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
60 changes: 60 additions & 0 deletions lib/attributes.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
///
/// Supported partial rendering types:
/// bold, italic,
/// underline, strikethrough,
/// color, font,
/// href
///
/// Supported global rendering types:
/// heading: h1, h2, h3, h4, h5, h6, ...
/// block quote,
/// list: ordered list, bulleted list,
/// code block
///
class BuiltInAttributeKey {
static String bold = 'bold';
static String italic = 'italic';
static String underline = 'underline';
static String strikethrough = 'strikethrough';
static String color = 'color';
static String backgroundColor = 'backgroundColor';
static String font = 'font';
static String href = 'href';

static String subtype = 'subtype';
static String heading = 'heading';
static String h1 = 'h1';
static String h2 = 'h2';
static String h3 = 'h3';
static String h4 = 'h4';
static String h5 = 'h5';
static String h6 = 'h6';

static String bulletedList = 'bulleted-list';
static String numberList = 'number-list';

static String quote = 'quote';
static String checkbox = 'checkbox';
static String code = 'code';
static String number = 'number';

static List<String> partialStyleKeys = [
BuiltInAttributeKey.bold,
BuiltInAttributeKey.italic,
BuiltInAttributeKey.underline,
BuiltInAttributeKey.strikethrough,
BuiltInAttributeKey.backgroundColor,
BuiltInAttributeKey.color,
BuiltInAttributeKey.href,
BuiltInAttributeKey.code,
];

static List<String> globalStyleKeys = [
BuiltInAttributeKey.subtype,
BuiltInAttributeKey.heading,
BuiltInAttributeKey.checkbox,
BuiltInAttributeKey.bulletedList,
BuiltInAttributeKey.numberList,
BuiltInAttributeKey.quote,
];
}
Loading

0 comments on commit ce6f04f

Please sign in to comment.