Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Piero512 committed Mar 11, 2021
1 parent bfb34c6 commit 6b80295
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/screens/configurations_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,15 @@ class _ConfigurationsScreenState extends State<ConfigurationsScreen> {
),
Padding(
padding:
const EdgeInsets.symmetric(vertical: 16, horizontal: 32),
const EdgeInsets.symmetric(vertical: 16, horizontal: 32),
child: Container(
width: double.infinity,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(5.0),
side:
BorderSide(color: Theme.of(context).primaryColor),
BorderSide(color: Theme.of(context).primaryColor),
),
primary: Provider.of<Mode>(context).isLightMode
? Colors.white
Expand All @@ -243,8 +243,10 @@ class _ConfigurationsScreenState extends State<ConfigurationsScreen> {
),
),
onPressed: () async {
var api = await showDialog<Api>(builder: (context) => DiscoverPage(), context: context);
if(api != null){
var api = await showDialog<Api>(
builder: (context) => DiscoverPage(),
context: context);
if (api != null) {
urlController.text = api.url;
usernameController.text = api.username;
passwordController.text = api.password;
Expand Down

0 comments on commit 6b80295

Please sign in to comment.