-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh indicator #190
base: main
Are you sure you want to change the base?
Refresh indicator #190
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ANDROID_MAP_API_KEY=<your_android_google_maps_api_key> | ||
IOS_MAP_API_KEY=<your_ios_google_maps_api_key> | ||
HTTP_ENDPOINT=<server's_HTTP_endpoint>(for example: https://beacon.aadibajpai.com/graphql) | ||
WEBSOCKET_ENDPOINT=<server's_websocket_endpoint>(for example: wss://beacon.aadibajpai.com/subscriptions) | ||
HTTP_ENDPOINT=<servers_HTTP_endpoint>(for example: https://beacon.aadibajpai.com/graphql)> | ||
WEBSOCKET_ENDPOINT=<servers_websocket_endpoint>(for example: wss://beacon.aadibajpai.com/subscriptions)> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a bit of formatting issue here too There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this be necessary? Can you show me the error without this change? As it didn't pose any problem with my app or runtime. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updates @Rushour0? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was an extremely minor change but, felt like it would just make the .env.example look better? |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import 'package:beacon/utilities/constants.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class ReloadIcon extends StatefulWidget { | ||
const ReloadIcon({Key key}) : super(key: key); | ||
|
||
@override | ||
State<ReloadIcon> createState() => _ReloadIconState(); | ||
} | ||
|
||
class _ReloadIconState extends State<ReloadIcon> with TickerProviderStateMixin { | ||
AnimationController _animation; | ||
@override | ||
void initState() { | ||
super.initState(); | ||
_animation = AnimationController( | ||
vsync: this, | ||
duration: Duration(seconds: 10), | ||
upperBound: 1, | ||
)..repeat(); | ||
} | ||
|
||
@override | ||
void dispose() { | ||
_animation.dispose(); | ||
super.dispose(); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
_animation..forward(); | ||
return RotationTransition( | ||
turns: Tween(begin: 0.0, end: 10.0).animate(_animation), | ||
child: Transform.rotate( | ||
angle: 0.5, | ||
child: Icon( | ||
Icons.refresh, | ||
color: kBlue, | ||
size: 30, | ||
), | ||
), | ||
); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the exact change over here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a bit of formatting issue here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this would be a required change. For any formatting issue, the command you ran for the previous commit, would have edited itself.