🐛 Bug fixes
This commit is contained in:
parent
cb7256af23
commit
8e04230388
@ -1,6 +1,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
import 'package:goatagent/auth.dart';
|
import 'package:goatagent/auth.dart';
|
||||||
|
import 'package:goatagent/screens/about.dart';
|
||||||
import 'package:goatagent/widgets/name_card.dart';
|
import 'package:goatagent/widgets/name_card.dart';
|
||||||
|
|
||||||
class AccountScreen extends StatefulWidget {
|
class AccountScreen extends StatefulWidget {
|
||||||
@ -78,7 +79,9 @@ class _AccountScreenState extends State<AccountScreen> {
|
|||||||
child: InkWell(
|
child: InkWell(
|
||||||
splashColor: Colors.indigo.withAlpha(30),
|
splashColor: Colors.indigo.withAlpha(30),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
GoRouter.of(context).push("/about");
|
Navigator.push(context, MaterialPageRoute(
|
||||||
|
builder: (context) => const AboutScreen(),
|
||||||
|
));
|
||||||
},
|
},
|
||||||
child: const ListTile(
|
child: const ListTile(
|
||||||
leading: Icon(Icons.info_outline),
|
leading: Icon(Icons.info_outline),
|
||||||
|
@ -15,16 +15,19 @@ class ApplicationScreen extends StatelessWidget {
|
|||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 18),
|
padding: const EdgeInsets.symmetric(horizontal: 18),
|
||||||
child: AppBar(),
|
child: AppBar(),
|
||||||
)
|
)),
|
||||||
),
|
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
child: WebViewWidget(
|
child: Stack(
|
||||||
|
children: [
|
||||||
|
WebViewWidget(
|
||||||
controller: WebViewController()
|
controller: WebViewController()
|
||||||
..setJavaScriptMode(JavaScriptMode.unrestricted)
|
..setJavaScriptMode(JavaScriptMode.unrestricted)
|
||||||
..setBackgroundColor(Colors.white)
|
..setBackgroundColor(Colors.white)
|
||||||
..loadRequest(link)
|
..loadRequest(link)
|
||||||
..clearCache(),
|
..clearCache(),
|
||||||
),
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,8 @@ class AuthorizationScreen extends StatelessWidget {
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: const Text('Connect with Goatpass'),
|
title: const Text('Connect with Goatpass'),
|
||||||
),
|
),
|
||||||
body: WebViewWidget(
|
body: Stack(children: [
|
||||||
|
WebViewWidget(
|
||||||
controller: WebViewController()
|
controller: WebViewController()
|
||||||
..setJavaScriptMode(JavaScriptMode.unrestricted)
|
..setJavaScriptMode(JavaScriptMode.unrestricted)
|
||||||
..setBackgroundColor(Colors.white)
|
..setBackgroundColor(Colors.white)
|
||||||
@ -28,6 +29,7 @@ class AuthorizationScreen extends StatelessWidget {
|
|||||||
..loadRequest(authorizationUrl)
|
..loadRequest(authorizationUrl)
|
||||||
..clearCache(),
|
..clearCache(),
|
||||||
),
|
),
|
||||||
|
]),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user