Skip to content

Commit

Permalink
Merge pull request #22 from andoriyaprashant/connect
Browse files Browse the repository at this point in the history
  • Loading branch information
savitore authored Jan 11, 2024
2 parents af7eb4f + 944e5e1 commit d4798ff
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions lib/screens/lg_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,20 +202,20 @@ class _LGSettingsState extends State<LGSettings> with TickerProviderStateMixin {
});
},
style: ElevatedButton.styleFrom(backgroundColor: ThemeColors.primaryColor,shape: const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(50)))),
child: Row(
children: [
const SizedBox(width: 5,),
const Text('CONNECT',style: TextStyle(fontSize: 20),),
const SizedBox(width: 10,),
_loading ?
SizedBox(
width: 20,
height: 20,
child: CircularProgressIndicator(strokeWidth: 3,color: ThemeColors.backgroundColor,),
) :
const Icon(Icons.cast_connected_outlined,size: 25,)
],
),
child: Row(
children: [
const SizedBox(width: 5,),
const Text('CONNECT', style: TextStyle(fontSize: 17.5, color: Colors.white,),),
const SizedBox(width: 10,),
_loading ?
SizedBox(
width: 20,
height: 20,
child: CircularProgressIndicator(strokeWidth: 3,color: ThemeColors.backgroundColor,),
) :
const Icon(Icons.cast_connected_outlined,size: 25, color: Colors.white, )
],
),
),
),
],
Expand All @@ -230,6 +230,7 @@ class _LGSettingsState extends State<LGSettings> with TickerProviderStateMixin {
);
}


Widget _getConnection(){
if(isAuthenticated){
setState(() {
Expand Down

0 comments on commit d4798ff

Please sign in to comment.