Skip to content

Commit

Permalink
added selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
sillajaxon committed Apr 18, 2023
1 parent e60ca08 commit 003bddb
Show file tree
Hide file tree
Showing 201 changed files with 5,846 additions and 1,356 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

18 changes: 0 additions & 18 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

16 changes: 0 additions & 16 deletions .github/no-response.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/dart.yml

This file was deleted.

35 changes: 25 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.dart_tool/
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

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

.packages
.pub/
# 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/
ios/
android/

pubspec.lock
doc/api/
6 changes: 4 additions & 2 deletions demo/.metadata → .metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
# This file should be version controlled and should not be manually edited.

version:
revision: 5ab9e70727d858def3a586db7fb98ee580352957
channel: beta
revision: 7048ed95a5ad3e43d697e0c397464193991fc230
channel: stable

project_type: package
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.0.1
- Adds support for 'SelectableText'

## 3.0.0
- Upgraded to null safety

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Simon Leier
Copyright (c) 2023 Jack Siro

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
31 changes: 14 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
# AutoSizeText
# AutoSizeText Plus*

![GitHub Workflow Status](https://img.shields.io/github/workflow/status/leisim/auto_size_text/CI) [![codecov](https://codecov.io/gh/leisim/auto_size_text/branch/master/graph/badge.svg)](https://codecov.io/gh/leisim/auto_size_text) [![Version](https://img.shields.io/pub/v/auto_size_text.svg)](https://pub.dev/packages/auto_size_text) ![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Oyonde/auto_size_text/CI) [![codecov](https://codecov.io/gh/Oyonde/auto_size_text/branch/master/graph/badge.svg)](https://codecov.io/gh/Oyonde/auto_size_text) [![Version](https://img.shields.io/pub/v/auto_size_text.svg)](https://pub.dev/packages/auto_size_text) ![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)

Flutter widget that automatically resizes text to fit perfectly within its bounds.

**Show some ❤️ and star the repo to support the project**

### Resources:
- [Documentation](https://pub.dev/documentation/auto_size_text/latest/auto_size_text/AutoSizeText-class.html)
- [Pub Package](https://pub.dev/packages/auto_size_text)
- [GitHub Repository](https://github.com/leisim/auto_size_text)
- [Online Demo](https://appetize.io/app/w352kxbnz51c6pfvxrdvxcb3xw?device=nexus5&scale=100&orientation=landscape&osVersion=8.1&deviceColor=black)
- [Documentation](https://pub.dev/documentation/auto_size_text_plus/latest/auto_size_text_plus/AutoSizeText-class.html)
- [Pub Package](https://pub.dev/packages/auto_size_text_plus)
- [GitHub Repository](https://github.com/Oyonde/auto_size_text)

Also check out the blazing fast key-value store [hive](https://github.com/leisim/hive).


![](https://raw.githubusercontent.com/leisim/auto_size_text/master/.github/art/maxlines.gif)
![](illustration/maxlines.gif)

## Contents

Expand Down Expand Up @@ -80,7 +77,7 @@ AutoSizeText(
)
```

![](https://raw.githubusercontent.com/leisim/auto_size_text/master/.github/art/minfontsize.gif)
![](illustration/minfontsize.gif)


### group
Expand All @@ -107,7 +104,7 @@ AutoSizeText(
);
```

![](https://raw.githubusercontent.com/leisim/auto_size_text/master/.github/art/group.gif)
![](illustration/group.gif)


### stepGranularity
Expand All @@ -126,7 +123,7 @@ AutoSizeText(
)
```

![](https://raw.githubusercontent.com/leisim/auto_size_text/master/.github/art/stepgranularity.gif)
![](illustration/stepgranularity.gif)


### presetFontSizes
Expand All @@ -142,7 +139,7 @@ AutoSizeText(
)
```

![](https://raw.githubusercontent.com/leisim/auto_size_text/master/.github/art/presetfontsizes.gif)
![](illustration/presetfontsizes.gif)


### overflowReplacement
Expand All @@ -157,7 +154,7 @@ AutoSizeText(
)
```

![](https://raw.githubusercontent.com/leisim/auto_size_text/master/.github/art/overflowreplacement.gif)
![](illustration/overflowreplacement.gif)


## Rich Text
Expand All @@ -179,7 +176,7 @@ AutoSizeText.rich(
The text will be at least 1/4 of its original size (5 / 20 = 1/4).
But it does not mean that all `TextSpan`s have at least font size `5`.

![](https://raw.githubusercontent.com/leisim/auto_size_text/master/.github/art/maxlines_rich.gif)
![](illustration/maxlines_rich.gif)


## Parameters
Expand Down Expand Up @@ -251,7 +248,7 @@ Row(
}
```

Further explanation can be found [here](https://stackoverflow.com/a/53908204). If you still have problems, please [open an issue](https://github.com/leisim/auto_size_text/issues/new).
Further explanation can be found [here](https://stackoverflow.com/a/53908204). If you still have problems, please [open an issue](issues/new).


### MinFontSize too large
Expand Down Expand Up @@ -285,7 +282,7 @@ AutoSizeText.rich(

## MIT License
```
Copyright (c) 2018 Simon Leier
Copyright (c) 2023 Jack Siro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
Expand Down
48 changes: 3 additions & 45 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,4 @@
include: package:pedantic/analysis_options.yaml
include: package:flutter_lints/flutter.yaml

analyzer:
exclude:
- "**/*.g.dart"
strong-mode:
implicit-casts: false
implicit-dynamic: false
errors:
todo: error
include_file_not_found: ignore
linter:
rules:
- avoid_function_literals_in_foreach_calls
- avoid_renaming_method_parameters
- avoid_returning_null
- avoid_unused_constructor_parameters
- await_only_futures
- camel_case_types
- cancel_subscriptions
- comment_references
- constant_identifier_names
- control_flow_in_finally
- directives_ordering
- empty_statements
- implementation_imports
- invariant_booleans
- iterable_contains_unrelated_type
- list_remove_unrelated_type
- no_adjacent_strings_in_list
- non_constant_identifier_names
- only_throw_errors
- overridden_fields
- package_api_docs
- package_names
- package_prefixed_library_names
- prefer_final_locals
- prefer_initializing_formals
- prefer_interpolation_to_compose_strings
- prefer_typing_uninitialized_variables
- test_types_in_equals
- throw_in_finally
- unnecessary_brace_in_string_interps
- unnecessary_getters_setters
- unnecessary_lambdas
- unnecessary_statements
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package io.flutter.plugins;

import io.flutter.plugin.common.PluginRegistry;

/**
* Generated file. Do not edit.
*/
public final class GeneratedPluginRegistrant {
public static void registerWith(PluginRegistry registry) {
if (alreadyRegisteredWith(registry)) {
return;
}
}

private static boolean alreadyRegisteredWith(PluginRegistry registry) {
final String key = GeneratedPluginRegistrant.class.getCanonicalName();
if (registry.hasPlugin(key)) {
return true;
}
registry.registrarFor(key);
return false;
}
}
2 changes: 2 additions & 0 deletions android/local.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sdk.dir=/Users/futurist/Developer/Android/Sdk
flutter.sdk=/Users/futurist/Developer/Flutter/Sdk
1 change: 0 additions & 1 deletion demo/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions demo/android/.gitignore

This file was deleted.

Loading

0 comments on commit 003bddb

Please sign in to comment.