π
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ExplicitAnimations extends StatefulWidget { | |
| const ExplicitAnimations({Key? key}) : super(key: key); | |
| @override | |
| State<ExplicitAnimations> createState() => _ExplicitAnimationsState(); | |
| } | |
| class _ExplicitAnimationsState extends State<ExplicitAnimations> | |
| with SingleTickerProviderStateMixin { | |
| late AnimationController _controller; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class AnimatedBuilderExample extends StatefulWidget { | |
| const AnimatedBuilderExample({Key? key}) : super(key: key); | |
| @override | |
| _AnimatedBuilderExampleState createState() => _AnimatedBuilderExampleState(); | |
| } | |
| class _AnimatedBuilderExampleState extends State<AnimatedBuilderExample> | |
| with SingleTickerProviderStateMixin { | |
| late final AnimationController _controller; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/services.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: key); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Carousel', | |
| debugShowCheckedModeBanner: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:math' as math; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Starter', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
| import 'package:dio/dio.dart'; | |
| // Disclaimer: This uses the "The Movie Database API (TMDB)" | |
| // https://developers.themoviedb.org/3/getting-started | |
| // With this endpoint: | |
| // https://developers.themoviedb.org/3/people/get-popular-people | |
| /// The FutureProvider that does the fetching of the paginated list of people |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Animated Scroll View Item', | |
| debugShowCheckedModeBanner: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| import 'package:recipes_ui/core/enums/screen_size.dart'; | |
| import 'package:recipes_ui/features/recipes/recipes_data.dart'; | |
| import 'package:recipes_ui/features/recipes/recipes_layout.dart'; | |
| import 'package:recipes_ui/features/recipes/views/widgets/recipe_list_item.dart'; | |
| import 'package:recipes_ui/features/recipes/views/widgets/recipe_list_item_wrapper.dart'; | |
| class RecipesPage extends StatefulWidget { | |
| const RecipesPage({Key? key}) : super(key: key); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| class RecipeListItemWrapper extends StatefulWidget { | |
| const RecipeListItemWrapper({ | |
| Key? key, | |
| required this.child, | |
| this.keepAlive = false, | |
| this.scrollDirection = ScrollDirection.forward, | |
| }) : super(key: key); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
| import 'package:recipes_ui/core/widgets/adaptive_offset_effect.dart'; | |
| import 'package:recipes_ui/features/recipes/providers/gyroscope_provider.dart'; | |
| import 'package:sensors_plus/sensors_plus.dart'; | |
| class GyroscopeEffect extends StatefulWidget { | |
| const GyroscopeEffect({ | |
| Key? key, | |
| required this.child, |