INNER CODE UNIT · Dart

HomePage

duytq94/flutter-fb-reactions-animation · lib/home_page.dart:5

class HomePage extends StatefulWidget {
  @override
  State createState() => HomePageState();
}

class HomePageState extends State<HomePage> {
  final _timeDelays = [1.0, 2.0, 3.0, 4.0, 5.0];
  int _selectedIndex = 0;

  void _onSpeedSettingPress(int index) {
    timeDilation = _timeDelays[index];
    setState(() {
      _selectedIndex = index;
    });
  }

  List<Widget> _buildListDelays() {
    final result = <Widget>[

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…