flutter_text_anchor 0.0.1 flutter_text_anchor: ^0.0.1 copied to clipboard
A flutter package that helps in creating an anchored text. Widget provides freedom to attach multiple link in a text.
flutter_text_anchor #
Screenshots #
- A flutter package that helps in creating an anchored text.
- Widget provides freedom to attach multiple link in a text.
- A paragraph for texts including simple links "http://thisisalink.com" or markdown format links "(Some text)[http://thisisalink.com]".
- This widget is build to identify links of both the format present in the paragraph.
Installing: #
In your pubspec.yaml
dependencies:
flutter_text_anchor: ^0.0.1
import 'package:flutter_text_anchor/flutter_text_anchor.dart';
Basic Usage: #
TextAnchor(
text: '''
Hello, this is (Rana)[https://medium.com/@ranaranvijaysingh9].
This is my (YouTube)[https://www.youtube.com/channel/UCl7ETvRjLZsm9qXcxAKCd4w] channel.
You can find this repository here: https://github.com/RanaRanvijaySingh/flutter_text_anchor.
''',
onTapLink: (link) {
print(link);
},
)
TextAnchor(
textColor: Colors.black54,
linkColor: Colors.pink,
fontWeight: FontWeight.w300,
fontSize: 18.0,
text: '''
Hello, this is (Rana)[https://medium.com/@ranaranvijaysingh9].
This is my (YouTube)[https://www.youtube.com/channel/UCl7ETvRjLZsm9qXcxAKCd4w] channel.
You can find this repository here: https://github.com/RanaRanvijaySingh/flutter_text_anchor.
''',
onTapLink: (link) {
print(link);
},
)
Pull Requests #
I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:
- Match coding style (braces, spacing, etc.) This is best achieved using
Reformat Code
feature of Android StudioCMD
+Option
+L
on Mac andCTRL
+ALT
+L
on Linux + Windows . - If its a feature, bugfix, or anything please only change code to what you specify.
- Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
- Pull requests must be made against
develop
branch. Any other branch (unless specified by the maintainers) will get rejected. - Make sure you follow the set standard as all other projects in this repo do
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
License #
Copyright 2020 Rana Ranvijay Singh
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.