@@ -126,17 +126,15 @@ class _ChewieDemoState extends State<ChewieDemo> {
126126 },
127127 subtitle: Subtitles (subtitles),
128128 showSubtitles: true ,
129- subtitleBuilder:
130- (context, dynamic subtitle) => Container (
131- padding: const EdgeInsets .all (10.0 ),
132- child:
133- subtitle is InlineSpan
134- ? RichText (text: subtitle)
135- : Text (
136- subtitle.toString (),
137- style: const TextStyle (color: Colors .black),
138- ),
139- ),
129+ subtitleBuilder: (context, dynamic subtitle) => Container (
130+ padding: const EdgeInsets .all (10.0 ),
131+ child: subtitle is InlineSpan
132+ ? RichText (text: subtitle)
133+ : Text (
134+ subtitle.toString (),
135+ style: const TextStyle (color: Colors .black),
136+ ),
137+ ),
140138
141139 hideControlsTimer: const Duration (seconds: 1 ),
142140
@@ -180,21 +178,18 @@ class _ChewieDemoState extends State<ChewieDemo> {
180178 children: < Widget > [
181179 Expanded (
182180 child: Center (
183- child:
184- _chewieController != null &&
185- _chewieController!
186- .videoPlayerController
187- .value
188- .isInitialized
189- ? Chewie (controller: _chewieController! )
190- : const Column (
191- mainAxisAlignment: MainAxisAlignment .center,
192- children: [
193- CircularProgressIndicator (),
194- SizedBox (height: 20 ),
195- Text ('Loading' ),
196- ],
197- ),
181+ child: _chewieController != null &&
182+ _chewieController!
183+ .videoPlayerController.value.isInitialized
184+ ? Chewie (controller: _chewieController! )
185+ : const Column (
186+ mainAxisAlignment: MainAxisAlignment .center,
187+ children: [
188+ CircularProgressIndicator (),
189+ SizedBox (height: 20 ),
190+ Text ('Loading' ),
191+ ],
192+ ),
198193 ),
199194 ),
200195 TextButton (
@@ -367,15 +362,14 @@ class _DelaySliderState extends State<DelaySlider> {
367362 ),
368363 trailing: IconButton (
369364 icon: const Icon (Icons .save),
370- onPressed:
371- saved
372- ? null
373- : () {
374- widget.onSave (delay);
375- setState (() {
376- saved = true ;
377- });
378- },
365+ onPressed: saved
366+ ? null
367+ : () {
368+ widget.onSave (delay);
369+ setState (() {
370+ saved = true ;
371+ });
372+ },
379373 ),
380374 );
381375 }
0 commit comments