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