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

not appropriate behavior after portrait to landscape orientation change #4

Open
SerhiiPtitsyn opened this issue Mar 19, 2024 · 0 comments

Comments

@SerhiiPtitsyn
Copy link

minimal code to reproduce:

import 'package:flutter/material.dart';
import 'package:ticker_text/ticker_text.dart';

void main(){
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    String textFirst = 'this is a very long story of my life';
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: TickerText(
            startPauseDuration: const Duration(seconds: 2),
            endPauseDuration: const Duration(seconds: 2),
            child: Text(textFirst,
              key: ValueKey(textFirst),
              softWrap: false,
              style: const TextStyle(fontSize: 38.0),
              maxLines: 1,
            ),
          ),
        ),
      ),
    );
  }
}

1

expecting:
2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants