fluttercandies / extended_text

A powerful extended official text for Flutter, which supports Speical Text(Image,@somebody), Custom Background, Custom overFlow, Text Selection.
MIT License
664 stars 134 forks source link

溢出位置设置成开始,溢出的字符只有一个的时候会卡住 #105

Closed shun007 closed 3 years ago

shun007 commented 3 years ago
import 'package:extended_text/extended_text.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Container(
          width: 100,
          // 数字刚好溢出一个
          child: ExtendedText("1234567891234",
              maxLines: 1,
              overflowWidget: TextOverflowWidget(
                position: TextOverflowPosition.start,
                  // 如果把省略号换成空字符串就不会卡了 Text("")
                child: Text("..."),
              ))),
    );
  }
}
zmtzawqlp commented 3 years ago

try 6.0.4