-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to 3.7.0
- Loading branch information
Showing
16 changed files
with
107 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# 10.0.0 | ||
|
||
* Migrate to 3.7.0 | ||
|
||
# 9.1.2 | ||
|
||
* Add TextOverflowWidget.clearType | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,8 +107,8 @@ class _CustomTextOverflowDemoState extends State<CustomTextOverflowDemo> { | |
'more', | ||
), | ||
onTap: () { | ||
launch( | ||
'https://github.com/fluttercandies/extended_text'); | ||
launchUrl(Uri.parse( | ||
'https://github.com/fluttercandies/extended_text')); | ||
}, | ||
) | ||
], | ||
|
@@ -125,12 +125,12 @@ class _CustomTextOverflowDemoState extends State<CustomTextOverflowDemo> { | |
void onSpecialTextTap(dynamic parameter) { | ||
if (parameter.toString().startsWith('\$')) { | ||
if (parameter.toString().contains('issue')) { | ||
launch('https://github.com/flutter/flutter/issues/26748'); | ||
launchUrl(Uri.parse('https://github.com/flutter/flutter/issues/26748')); | ||
} else { | ||
launch('https://github.com/fluttercandies'); | ||
launchUrl(Uri.parse('https://github.com/fluttercandies')); | ||
} | ||
} else if (parameter.toString().startsWith('@')) { | ||
launch('mailto:[email protected]'); | ||
launchUrl(Uri.parse('mailto:[email protected]')); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,12 +87,12 @@ class JoinZeroWidthSpaceDemo extends StatelessWidget { | |
void onSpecialTextTap(dynamic parameter) { | ||
if (parameter.toString().startsWith('\$')) { | ||
if (parameter.toString().contains('issue')) { | ||
launch('https://github.com/flutter/flutter/issues/26748'); | ||
launchUrl(Uri.parse('https://github.com/flutter/flutter/issues/26748')); | ||
} else { | ||
launch('https://github.com/fluttercandies'); | ||
launchUrl(Uri.parse('https://github.com/fluttercandies')); | ||
} | ||
} else if (parameter.toString().startsWith('@')) { | ||
launch('mailto:[email protected]'); | ||
launchUrl(Uri.parse('mailto:[email protected]')); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,11 +23,11 @@ class RegExpTextDemo extends StatelessWidget { | |
'\n\nif you meet any problem, please let me know @zmtzawqlp and send an mailto:[email protected] to me .[sun_glasses] ', | ||
onSpecialTextTap: (dynamic parameter) { | ||
if (parameter.toString().startsWith('\$')) { | ||
launch('https://github.com/fluttercandies'); | ||
launchUrl(Uri.parse('https://github.com/fluttercandies')); | ||
} else if (parameter.toString().startsWith('@')) { | ||
launch('mailto:[email protected]'); | ||
launchUrl(Uri.parse('mailto:[email protected]')); | ||
} else if (parameter.toString().startsWith('mailto:')) { | ||
launch(parameter.toString()); | ||
launchUrl(Uri.parse(parameter.toString())); | ||
} | ||
}, | ||
specialTextSpanBuilder: MyRegExpSpecialTextSpanBuilder(), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,9 +23,9 @@ class TextDemo extends StatelessWidget { | |
'\n\nif you meet any problem, please let me know @zmtzawqlp .[sun_glasses]', | ||
onSpecialTextTap: (dynamic parameter) { | ||
if (parameter.toString().startsWith('\$')) { | ||
launch('https://github.com/fluttercandies'); | ||
launchUrl(Uri.parse('https://github.com/fluttercandies')); | ||
} else if (parameter.toString().startsWith('@')) { | ||
launch('mailto:[email protected]'); | ||
launchUrl(Uri.parse('mailto:[email protected]')); | ||
} | ||
}, | ||
specialTextSpanBuilder: MySpecialTextSpanBuilder(), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,9 +50,10 @@ class _TextSelectionDemoState extends State<TextSelectionDemo> { | |
_attachContent, | ||
onSpecialTextTap: (dynamic parameter) { | ||
if (parameter.toString().startsWith('\$')) { | ||
launch('https://github.com/fluttercandies'); | ||
launchUrl( | ||
Uri.parse('https://github.com/fluttercandies')); | ||
} else if (parameter.toString().startsWith('@')) { | ||
launch('mailto:[email protected]'); | ||
launchUrl(Uri.parse('mailto:[email protected]')); | ||
} | ||
}, | ||
specialTextSpanBuilder: MySpecialTextSpanBuilder(), | ||
|
@@ -67,8 +68,8 @@ class _TextSelectionDemoState extends State<TextSelectionDemo> { | |
InkWell( | ||
child: const Text('more'), | ||
onTap: () { | ||
launch( | ||
'https://github.com/fluttercandies/extended_text'); | ||
launchUrl(Uri.parse( | ||
'https://github.com/fluttercandies/extended_text')); | ||
}, | ||
) | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import 'dart:math' as math; | ||
import 'package:extended_text_library/extended_text_library.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/rendering.dart'; | ||
import 'package:flutter/services.dart'; | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
|
@@ -75,8 +74,8 @@ class MyTextSelectionControls extends TextSelectionControls { | |
handleSelectAll: | ||
canSelectAll(delegate) ? () => handleSelectAll(delegate) : null, | ||
handleLike: () { | ||
launch( | ||
'mailto:[email protected]?subject=extended_text_share&body=${delegate.textEditingValue.text}'); | ||
launchUrl(Uri.parse( | ||
'mailto:[email protected]?subject=extended_text_share&body=${delegate.textEditingValue.text}')); | ||
delegate.hideToolbar(); | ||
delegate.userUpdateTextEditingValue( | ||
delegate.textEditingValue | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.