34 lines
821 B
Dart
34 lines
821 B
Dart
import 'dart:io';
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
|
import 'package:goatagent/auth.dart';
|
|
import 'package:goatagent/widgets/name_card.dart';
|
|
import 'package:oauth2/oauth2.dart' as oauth2;
|
|
|
|
import 'auth.dart';
|
|
|
|
class AccountScreen extends StatelessWidget {
|
|
const AccountScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: SafeArea(
|
|
child: Padding(
|
|
padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 20),
|
|
child: Column(
|
|
children: [
|
|
NameCard(
|
|
onLogin: () async {
|
|
await AuthGuard().login(context);
|
|
},
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|