Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lines not arranged in correct order #9

Closed
PieterAelse opened this issue Mar 12, 2019 · 1 comment
Closed

Lines not arranged in correct order #9

PieterAelse opened this issue Mar 12, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@PieterAelse
Copy link
Contributor

Line order gets messed up when using multiple \n with at leaste one link in the text.
Example: First line.\nSecond line.\nThird line\nFourth line: https://fourth.com

Tested on v1.1.1.

Screenshot:
Screenshot_1552421760

Code:

import 'package:flutter_linkify/flutter_linkify.dart';
import 'package:url_launcher/url_launcher.dart';

void main() => runApp(new LinkifyExample());

class LinkifyExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'flutter_linkify example',
      home: Scaffold(
        appBar: AppBar(
          title: Text('flutter_linkify example'),
        ),
        body: Center(
          child: Linkify(
            onOpen: (url) async {
              if (await canLaunch(url)) {
                await launch(url);
              } else {
                throw 'Could not launch $url';
              }
            },
            text: "First line.\nSecond line.\nThird line\nFourth line: https://fourth.com",
          ),
        ),
      ),
    );
  }
}
@Cretezy Cretezy added the bug Something isn't working label Mar 13, 2019
@Cretezy
Copy link
Owner

Cretezy commented Mar 18, 2019

image

Fixed in 2.0.0!

@Cretezy Cretezy closed this as completed Mar 18, 2019
Cretezy added a commit that referenced this issue Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants