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

TrimViewer not render with condition render #215

Open
jackie-maxx opened this issue Sep 23, 2023 · 0 comments
Open

TrimViewer not render with condition render #215

jackie-maxx opened this issue Sep 23, 2023 · 0 comments

Comments

@jackie-maxx
Copy link

if(isLoading)...[
const SpinKitFoldingCube(color: appPrimaryColor, size: 30),
]else...[

Center(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: TrimViewer(
trimmer: _trimmer,
viewerHeight: 50.0,
viewerWidth: MediaQuery.of(context).size.width,
durationStyle: DurationStyle.FORMAT_MM_SS,
maxVideoLength: Duration(seconds: Service.toInteger(Service.userAccount['video_length_in_second'].toString())),
editorProperties: TrimEditorProperties(
borderPaintColor: Colors.yellow,
borderWidth: 4,
borderRadius: 5,
circlePaintColor: Colors.yellow.shade800,
),
durationTextStyle: Theme.of(context).textTheme.bodyMedium!,
onChangeStart: (value) => _startValue = value,
onChangeEnd: (value) => _endValue = value,
onChangePlaybackState: (value) => setState(() => _isPlaying = value),
),
),
),

]

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

No branches or pull requests

1 participant