Answers for "how to rebuild widget in flutter in time intervals"

0

how to rebuild widget in flutter in time intervals

import 'package:timer_builder/timer_builder.dart';

class ClockWidget extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return TimerBuilder.periodic(Duration(seconds: 1),
      builder: (context) {
        return Text("${DateTime.now()}");
      }
    );
  }
  
}
Posted by: Guest on November-04-2020

Code answers related to "how to rebuild widget in flutter in time intervals"

Code answers related to "Dart"

Browse Popular Code Answers by Language