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
| library nuts_activity_indicator; | |
| import 'dart:math' as math; | |
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| /// A highly customizable activity indicator (spinner) | |
| /// based on the iOS-style activity indicator from the | |
| /// `cupertino` package. |
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
| library nuts_activity_indicator; | |
| import 'dart:math' as math; | |
| import 'package:flutter/widgets.dart'; | |
| import 'package:flutter/material.dart'; | |
| /// A highly customizable activity indicator (spinner) | |
| /// based on the iOS-style activity indicator from the | |
| /// `cupertino` package. |
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:async'; | |
| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(AsteroidGame()); | |
| } | |
| class AsteroidGame extends StatefulWidget { |
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"; | |
| import "dart:collection"; | |
| class Node | |
| { | |
| final int value; | |
| Node? left; | |
| Node? right; | |
| static Node get empty => Node(0); | |
| Node(this.value,{this.left,this.right}); | |
| } |
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 Node | |
| { | |
| final String value; | |
| Node? left; | |
| Node? right; | |
| static Node get empty => Node(""); | |
| Node(this.value,{this.left,this.right}); | |
| } |
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
| Iterable<T> removeNull<T>(Iterable<T?> iterable) | |
| sync*{ | |
| for(final element in iterable){ | |
| if(element !=null) | |
| { | |
| yield element; | |
| } | |
| } | |
| } |
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
| Iterable<T> removeNull<T>(Iterable<T?> iterable) | |
| sync*{ | |
| for(final element in iterable){ | |
| if(element !=null) | |
| { | |
| yield element; | |
| } | |
| } | |
| } |
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 AppRouter { | |
| static router(BuildContext context) => GoRouter( | |
| debugLogDiagnostics: true, | |
| routes: [ | |
| GoRoute( | |
| path: '/', | |
| builder: (context, state) => BlocProvider( | |
| create: (context) => | |
| HomeBloc(RepositoryProvider.of<UserRepository>(context)) | |
| ..add(FetchUserDetail()), |
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
| export 'bloc/music_player_bloc.dart'; | |
| export 'music_player_screen.dart'; |
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_bloc/flutter_bloc.dart'; | |
| import 'music_player/music_player.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: key); |
NewerOlder