flutter_linkify
flutter_linkify copied to clipboard
A weird UI issue on iOS
Example code:
import 'package:flutter/material.dart';
import 'package:flutter_linkify/flutter_linkify.dart';
void main() => runApp(LinkifyExample());
class LinkifyExample extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'flutter_linkify example',
home: Scaffold(
appBar: AppBar(
title: Text('flutter_linkify example'),
),
body: Linkify(
style: const TextStyle(
fontSize: 13,
),
text:
"a word\n\na word\n\na word\n\na word\n\na word\n\na word\n\na word\n\na word\n\na word\n\na word\n\na word\n\na word\n\nGoogle :https://www.google.com",
),
),
);
}
}
UI:
Expected: The "Google" text and the link should be on the same line.
This issue only happens on iOS (Simulator + real device). It's good on Web and Android.
My environment: flutter_linkify version: 5.0.2 iOS version: 15+, iPhone 13 pro simulator and iPhone 8 plus real device.