This repository has been archived on 2024-06-08. You can view files and clone it, but cannot push or open issues or pull requests.
SolarAgent/lib/screens/account.dart

34 lines
821 B
Dart
Raw Normal View History

2024-02-07 20:40:56 +00:00
import 'dart:io';
2024-02-07 17:25:58 +00:00
import 'package:flutter/material.dart';
2024-02-07 20:40:56 +00:00
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';
2024-02-07 17:25:58 +00:00
class AccountScreen extends StatelessWidget {
const AccountScreen({super.key});
@override
Widget build(BuildContext context) {
2024-02-07 20:40:56 +00:00
return Scaffold(
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 20),
child: Column(
children: [
NameCard(
onLogin: () async {
await AuthGuard().login(context);
},
),
],
),
),
2024-02-07 17:25:58 +00:00
),
);
}
2024-02-07 20:40:56 +00:00
}