progress in calendar sync
This commit is contained in:
parent
c214705368
commit
9c43de08db
BIN
refilc/assets/images/banner_texture.png
Normal file
BIN
refilc/assets/images/banner_texture.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 MiB |
BIN
refilc/assets/images/ext_logo/apple.png
Normal file
BIN
refilc/assets/images/ext_logo/apple.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 53 KiB |
BIN
refilc/assets/images/ext_logo/google.png
Normal file
BIN
refilc/assets/images/ext_logo/google.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
@ -72,6 +72,7 @@ const userDataDB = DatabaseStruct("user_data", {
|
|||||||
// v5 shit
|
// v5 shit
|
||||||
"roundings": String,
|
"roundings": String,
|
||||||
"grade_rarities": String,
|
"grade_rarities": String,
|
||||||
|
"linked_accounts": String,
|
||||||
});
|
});
|
||||||
|
|
||||||
Future<void> createTable(Database db, DatabaseStruct struct) =>
|
Future<void> createTable(Database db, DatabaseStruct struct) =>
|
||||||
@ -134,6 +135,7 @@ Future<Database> initDB(DatabaseProvider database) async {
|
|||||||
// v5 shit
|
// v5 shit
|
||||||
"roundings": "{}",
|
"roundings": "{}",
|
||||||
"grade_rarities": "{}",
|
"grade_rarities": "{}",
|
||||||
|
"linked_accounts": "{}",
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
print("ERROR: migrateDB: $error");
|
print("ERROR: migrateDB: $error");
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'package:refilc/api/providers/database_provider.dart';
|
import 'package:refilc/api/providers/database_provider.dart';
|
||||||
|
import 'package:refilc/models/linked_account.dart';
|
||||||
import 'package:refilc/models/self_note.dart';
|
import 'package:refilc/models/self_note.dart';
|
||||||
import 'package:refilc/models/subject_lesson_count.dart';
|
import 'package:refilc/models/subject_lesson_count.dart';
|
||||||
import 'package:refilc/models/user.dart';
|
import 'package:refilc/models/user.dart';
|
||||||
@ -133,7 +134,14 @@ class UserDatabaseQuery {
|
|||||||
.map((e) => SendRecipient.fromJson(
|
.map((e) => SendRecipient.fromJson(
|
||||||
e,
|
e,
|
||||||
SendRecipientType.fromJson(e != null
|
SendRecipientType.fromJson(e != null
|
||||||
? e['tipus']
|
? (e['tipus'] ??
|
||||||
|
{
|
||||||
|
'azonosito': '',
|
||||||
|
'kod': '',
|
||||||
|
'leiras': '',
|
||||||
|
'nev': '',
|
||||||
|
'rovidNev': ''
|
||||||
|
})
|
||||||
: {
|
: {
|
||||||
'azonosito': '',
|
'azonosito': '',
|
||||||
'kod': '',
|
'kod': '',
|
||||||
@ -326,4 +334,17 @@ class UserDatabaseQuery {
|
|||||||
return (jsonDecode(raritiesJson) as Map)
|
return (jsonDecode(raritiesJson) as Map)
|
||||||
.map((key, value) => MapEntry(key.toString(), value.toString()));
|
.map((key, value) => MapEntry(key.toString(), value.toString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<List<LinkedAccount>> getLinkedAccounts(
|
||||||
|
{required String userId}) async {
|
||||||
|
List<Map> userData =
|
||||||
|
await db.query("user_data", where: "id = ?", whereArgs: [userId]);
|
||||||
|
if (userData.isEmpty) return [];
|
||||||
|
String? accountsJson = userData.elementAt(0)["linked_accounts"] as String?;
|
||||||
|
if (accountsJson == null) return [];
|
||||||
|
List<LinkedAccount> accounts = (jsonDecode(accountsJson) as List)
|
||||||
|
.map((e) => LinkedAccount.fromJson(e))
|
||||||
|
.toList();
|
||||||
|
return accounts;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
35
refilc/lib/models/linked_account.dart
Normal file
35
refilc/lib/models/linked_account.dart
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
enum AccountType {
|
||||||
|
apple,
|
||||||
|
google,
|
||||||
|
meta,
|
||||||
|
qwid,
|
||||||
|
}
|
||||||
|
|
||||||
|
class LinkedAccount {
|
||||||
|
AccountType type;
|
||||||
|
String username;
|
||||||
|
String displayName;
|
||||||
|
String id;
|
||||||
|
|
||||||
|
LinkedAccount({
|
||||||
|
required this.type,
|
||||||
|
required this.username,
|
||||||
|
required this.displayName,
|
||||||
|
required this.id,
|
||||||
|
});
|
||||||
|
|
||||||
|
factory LinkedAccount.fromJson(Map json) {
|
||||||
|
return LinkedAccount(
|
||||||
|
type: json['type'] == 'apple'
|
||||||
|
? AccountType.apple
|
||||||
|
: json['type'] == 'google'
|
||||||
|
? AccountType.google
|
||||||
|
: json['type'] == 'meta'
|
||||||
|
? AccountType.meta
|
||||||
|
: AccountType.qwid,
|
||||||
|
username: json['username'],
|
||||||
|
displayName: json['display_name'],
|
||||||
|
id: json['id'],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,8 @@
|
|||||||
import 'package:extension_google_sign_in_as_googleapis_auth/extension_google_sign_in_as_googleapis_auth.dart';
|
import 'package:extension_google_sign_in_as_googleapis_auth/extension_google_sign_in_as_googleapis_auth.dart';
|
||||||
|
import 'package:provider/provider.dart';
|
||||||
|
import 'package:refilc/api/providers/database_provider.dart';
|
||||||
|
import 'package:refilc/api/providers/user_provider.dart';
|
||||||
|
import 'package:refilc/models/linked_account.dart';
|
||||||
import 'package:refilc_kreta_api/controllers/timetable_controller.dart';
|
import 'package:refilc_kreta_api/controllers/timetable_controller.dart';
|
||||||
import 'package:refilc_kreta_api/models/lesson.dart';
|
import 'package:refilc_kreta_api/models/lesson.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
@ -8,7 +12,9 @@ import 'package:google_sign_in/google_sign_in.dart';
|
|||||||
|
|
||||||
class ThirdPartyProvider with ChangeNotifier {
|
class ThirdPartyProvider with ChangeNotifier {
|
||||||
late List<Event>? _googleEvents;
|
late List<Event>? _googleEvents;
|
||||||
// late BuildContext _context;
|
late List<LinkedAccount> _linkedAccounts;
|
||||||
|
|
||||||
|
late BuildContext _context;
|
||||||
|
|
||||||
static final _googleSignIn = GoogleSignIn(scopes: [
|
static final _googleSignIn = GoogleSignIn(scopes: [
|
||||||
CalendarApi.calendarScope,
|
CalendarApi.calendarScope,
|
||||||
@ -16,13 +22,31 @@ class ThirdPartyProvider with ChangeNotifier {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
List<Event> get googleEvents => _googleEvents ?? [];
|
List<Event> get googleEvents => _googleEvents ?? [];
|
||||||
|
List<LinkedAccount> get linkedAccounts => _linkedAccounts;
|
||||||
|
|
||||||
ThirdPartyProvider({
|
ThirdPartyProvider({
|
||||||
required BuildContext context,
|
required BuildContext context,
|
||||||
|
List<LinkedAccount>? initialLinkedAccounts,
|
||||||
}) {
|
}) {
|
||||||
// _context = context;
|
_context = context;
|
||||||
|
_linkedAccounts = initialLinkedAccounts ?? [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<void> restore() async {
|
||||||
|
String? userId = Provider.of<UserProvider>(_context, listen: false).id;
|
||||||
|
|
||||||
|
// Load absences from the database
|
||||||
|
if (userId != null) {
|
||||||
|
var dbLinkedAccounts =
|
||||||
|
await Provider.of<DatabaseProvider>(_context, listen: false)
|
||||||
|
.userQuery
|
||||||
|
.getLinkedAccounts(userId: userId);
|
||||||
|
_linkedAccounts = dbLinkedAccounts;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void fetch() async {}
|
||||||
|
|
||||||
Future<GoogleSignInAccount?> googleSignIn() async {
|
Future<GoogleSignInAccount?> googleSignIn() async {
|
||||||
if (!await _googleSignIn.isSignedIn()) {
|
if (!await _googleSignIn.isSignedIn()) {
|
||||||
return _googleSignIn.signIn();
|
return _googleSignIn.signIn();
|
||||||
|
@ -96,6 +96,7 @@ flutter:
|
|||||||
- assets/images/
|
- assets/images/
|
||||||
- assets/images/subject_covers/
|
- assets/images/subject_covers/
|
||||||
- assets/launch_icons/
|
- assets/launch_icons/
|
||||||
|
- assets/images/ext_logo/
|
||||||
|
|
||||||
fonts:
|
fonts:
|
||||||
- family: FilcIcons
|
- family: FilcIcons
|
||||||
|
@ -198,7 +198,7 @@ class SendRecipientType {
|
|||||||
|
|
||||||
factory SendRecipientType.fromJson(Map json) {
|
factory SendRecipientType.fromJson(Map json) {
|
||||||
return SendRecipientType(
|
return SendRecipientType(
|
||||||
id: json['azonosito'],
|
id: json['azonosito'] != '' ? int.parse(json['azonosito']) : 0,
|
||||||
code: json['kod'],
|
code: json['kod'],
|
||||||
description: json['leiras'],
|
description: json['leiras'],
|
||||||
name: json['nev'],
|
name: json['nev'],
|
||||||
|
@ -99,6 +99,7 @@ extension SettingsLocalization on String {
|
|||||||
"show_breaks": "Show Breaks",
|
"show_breaks": "Show Breaks",
|
||||||
"fonts": "Fonts",
|
"fonts": "Fonts",
|
||||||
"font_family": "Font Family",
|
"font_family": "Font Family",
|
||||||
|
"calendar_sync": "Calendar Sync",
|
||||||
},
|
},
|
||||||
"hu_hu": {
|
"hu_hu": {
|
||||||
"personal_details": "Személyes információk",
|
"personal_details": "Személyes információk",
|
||||||
@ -196,6 +197,7 @@ extension SettingsLocalization on String {
|
|||||||
"show_breaks": "Szünetek megjelenítése",
|
"show_breaks": "Szünetek megjelenítése",
|
||||||
"fonts": "Betűk",
|
"fonts": "Betűk",
|
||||||
"font_family": "Betűtípus",
|
"font_family": "Betűtípus",
|
||||||
|
"calendar_sync": "Naptár szinkronizálás",
|
||||||
},
|
},
|
||||||
"de_de": {
|
"de_de": {
|
||||||
"personal_details": "Persönliche Angaben",
|
"personal_details": "Persönliche Angaben",
|
||||||
@ -293,6 +295,7 @@ extension SettingsLocalization on String {
|
|||||||
"show_breaks": "Pausen anzeigen",
|
"show_breaks": "Pausen anzeigen",
|
||||||
"fonts": "Schriftarten",
|
"fonts": "Schriftarten",
|
||||||
"font_family": "Schriftfamilie",
|
"font_family": "Schriftfamilie",
|
||||||
|
"calendar_sync": "heil hitler",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
262
refilc_mobile_ui/lib/screens/settings/submenu/calendar_sync.dart
Normal file
262
refilc_mobile_ui/lib/screens/settings/submenu/calendar_sync.dart
Normal file
@ -0,0 +1,262 @@
|
|||||||
|
// ignore_for_file: use_build_context_synchronously
|
||||||
|
|
||||||
|
import 'package:collection/collection.dart';
|
||||||
|
import 'package:refilc/api/providers/user_provider.dart';
|
||||||
|
import 'package:refilc/models/linked_account.dart';
|
||||||
|
import 'package:refilc/models/settings.dart';
|
||||||
|
import 'package:refilc/models/shared_theme.dart';
|
||||||
|
import 'package:refilc/providers/third_party_provider.dart';
|
||||||
|
import 'package:refilc/theme/colors/accent.dart';
|
||||||
|
import 'package:refilc/theme/colors/colors.dart';
|
||||||
|
import 'package:refilc/theme/observer.dart';
|
||||||
|
import 'package:refilc_kreta_api/providers/share_provider.dart';
|
||||||
|
import 'package:refilc_mobile_ui/common/custom_snack_bar.dart';
|
||||||
|
import 'package:refilc_mobile_ui/common/panel/panel_button.dart';
|
||||||
|
import 'package:refilc_mobile_ui/common/splitted_panel/splitted_panel.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||||
|
import 'package:provider/provider.dart';
|
||||||
|
import 'package:refilc_mobile_ui/screens/settings/settings_screen.i18n.dart';
|
||||||
|
import 'package:share_plus/share_plus.dart';
|
||||||
|
import 'package:flutter_any_logo/flutter_logo.dart';
|
||||||
|
|
||||||
|
class MenuCalendarSync extends StatelessWidget {
|
||||||
|
const MenuCalendarSync({
|
||||||
|
super.key,
|
||||||
|
this.borderRadius = const BorderRadius.vertical(
|
||||||
|
top: Radius.circular(4.0), bottom: Radius.circular(4.0)),
|
||||||
|
});
|
||||||
|
|
||||||
|
final BorderRadius borderRadius;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return PanelButton(
|
||||||
|
onPressed: () async {
|
||||||
|
Navigator.of(context, rootNavigator: true).push(CupertinoPageRoute(
|
||||||
|
builder: (context) => const CalendarSyncScreen()));
|
||||||
|
},
|
||||||
|
title: Text(
|
||||||
|
"calendar_sync".i18n,
|
||||||
|
style: TextStyle(
|
||||||
|
color: AppColors.of(context).text.withOpacity(.95),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
leading: Icon(
|
||||||
|
FeatherIcons.calendar,
|
||||||
|
size: 22.0,
|
||||||
|
color: AppColors.of(context).text.withOpacity(.95),
|
||||||
|
),
|
||||||
|
trailing: Icon(
|
||||||
|
FeatherIcons.chevronRight,
|
||||||
|
size: 22.0,
|
||||||
|
color: AppColors.of(context).text.withOpacity(0.95),
|
||||||
|
),
|
||||||
|
borderRadius: borderRadius,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class CalendarSyncScreen extends StatefulWidget {
|
||||||
|
const CalendarSyncScreen({super.key});
|
||||||
|
|
||||||
|
@override
|
||||||
|
CalendarSyncScreenState createState() => CalendarSyncScreenState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class CalendarSyncScreenState extends State<CalendarSyncScreen>
|
||||||
|
with SingleTickerProviderStateMixin {
|
||||||
|
late SettingsProvider settingsProvider;
|
||||||
|
late UserProvider user;
|
||||||
|
late ShareProvider shareProvider;
|
||||||
|
|
||||||
|
late AnimationController _hideContainersController;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
|
||||||
|
shareProvider = Provider.of<ShareProvider>(context, listen: false);
|
||||||
|
|
||||||
|
_hideContainersController = AnimationController(
|
||||||
|
vsync: this, duration: const Duration(milliseconds: 200));
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
settingsProvider = Provider.of<SettingsProvider>(context);
|
||||||
|
user = Provider.of<UserProvider>(context);
|
||||||
|
|
||||||
|
return AnimatedBuilder(
|
||||||
|
animation: _hideContainersController,
|
||||||
|
builder: (context, child) => Opacity(
|
||||||
|
opacity: 1 - _hideContainersController.value,
|
||||||
|
child: Scaffold(
|
||||||
|
appBar: AppBar(
|
||||||
|
surfaceTintColor: Theme.of(context).scaffoldBackgroundColor,
|
||||||
|
leading: BackButton(color: AppColors.of(context).text),
|
||||||
|
title: Text(
|
||||||
|
"calendar_sync".i18n,
|
||||||
|
style: TextStyle(color: AppColors.of(context).text),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
body: SingleChildScrollView(
|
||||||
|
child: Padding(
|
||||||
|
padding:
|
||||||
|
const EdgeInsets.symmetric(vertical: 16.0, horizontal: 24.0),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
// banner
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(top: 10),
|
||||||
|
child: Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.circular(12.0),
|
||||||
|
image: const DecorationImage(
|
||||||
|
image: AssetImage(
|
||||||
|
'assets/images/banner_texture.png',
|
||||||
|
),
|
||||||
|
fit: BoxFit.cover,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 20,
|
||||||
|
vertical: 40,
|
||||||
|
),
|
||||||
|
child: Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.white,
|
||||||
|
borderRadius: BorderRadius.circular(16.0),
|
||||||
|
),
|
||||||
|
height: 64,
|
||||||
|
width: 64,
|
||||||
|
child: const Icon(
|
||||||
|
Icons.calendar_month,
|
||||||
|
size: 38.0,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 10),
|
||||||
|
Icon(
|
||||||
|
Icons.sync_alt_outlined,
|
||||||
|
color:
|
||||||
|
AppColors.of(context).text.withOpacity(0.2),
|
||||||
|
size: 20.0,
|
||||||
|
),
|
||||||
|
const SizedBox(width: 10),
|
||||||
|
Image.asset(
|
||||||
|
'assets/icons/ic_rounded.png',
|
||||||
|
width: 64,
|
||||||
|
height: 64,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
|
const SizedBox(
|
||||||
|
height: 18.0,
|
||||||
|
),
|
||||||
|
// choose account if not logged in
|
||||||
|
if (Provider.of<ThirdPartyProvider>(context)
|
||||||
|
.linkedAccounts
|
||||||
|
.isEmpty)
|
||||||
|
Column(
|
||||||
|
children: [
|
||||||
|
SplittedPanel(
|
||||||
|
title: Text('choose_account'.i18n),
|
||||||
|
padding: EdgeInsets.zero,
|
||||||
|
cardPadding: const EdgeInsets.all(4.0),
|
||||||
|
isSeparated: true,
|
||||||
|
children: [
|
||||||
|
PanelButton(
|
||||||
|
onPressed: () async {
|
||||||
|
await Provider.of<ThirdPartyProvider>(context,
|
||||||
|
listen: false)
|
||||||
|
.googleSignIn();
|
||||||
|
},
|
||||||
|
title: Text(
|
||||||
|
'Google',
|
||||||
|
style: TextStyle(
|
||||||
|
color: AppColors.of(context)
|
||||||
|
.text
|
||||||
|
.withOpacity(.95),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
leading: Image.asset(
|
||||||
|
'assets/images/ext_logo/google.png',
|
||||||
|
width: 24.0,
|
||||||
|
height: 24.0,
|
||||||
|
),
|
||||||
|
borderRadius: const BorderRadius.vertical(
|
||||||
|
top: Radius.circular(12),
|
||||||
|
bottom: Radius.circular(12),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
const SizedBox(
|
||||||
|
height: 9.0,
|
||||||
|
),
|
||||||
|
SplittedPanel(
|
||||||
|
padding: EdgeInsets.zero,
|
||||||
|
cardPadding: const EdgeInsets.all(4.0),
|
||||||
|
isSeparated: true,
|
||||||
|
children: [
|
||||||
|
PanelButton(
|
||||||
|
onPressed: null,
|
||||||
|
title: Text(
|
||||||
|
'Apple',
|
||||||
|
style: TextStyle(
|
||||||
|
color: AppColors.of(context)
|
||||||
|
.text
|
||||||
|
.withOpacity(.55),
|
||||||
|
decoration: TextDecoration.lineThrough,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
leading: Image.asset(
|
||||||
|
'assets/images/ext_logo/apple.png',
|
||||||
|
width: 24.0,
|
||||||
|
height: 24.0,
|
||||||
|
),
|
||||||
|
trailing: Text(
|
||||||
|
'Hamarosan'.i18n,
|
||||||
|
style: const TextStyle(
|
||||||
|
fontStyle: FontStyle.italic,
|
||||||
|
fontSize: 14.0),
|
||||||
|
),
|
||||||
|
borderRadius: const BorderRadius.vertical(
|
||||||
|
top: Radius.circular(12),
|
||||||
|
bottom: Radius.circular(12),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
|
||||||
|
const SizedBox(
|
||||||
|
height: 18.0,
|
||||||
|
),
|
||||||
|
// own paints
|
||||||
|
SplittedPanel(
|
||||||
|
title: Text('public_paint'.i18n),
|
||||||
|
padding: EdgeInsets.zero,
|
||||||
|
cardPadding: const EdgeInsets.all(4.0),
|
||||||
|
children: [],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -9,6 +9,7 @@ import 'package:flutter/cupertino.dart';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
import 'package:flutter_feather_icons/flutter_feather_icons.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
import 'package:refilc_mobile_ui/screens/settings/submenu/calendar_sync.dart';
|
||||||
import 'package:refilc_plus/models/premium_scopes.dart';
|
import 'package:refilc_plus/models/premium_scopes.dart';
|
||||||
import 'package:refilc_plus/providers/premium_provider.dart';
|
import 'package:refilc_plus/providers/premium_provider.dart';
|
||||||
import 'package:refilc_plus/ui/mobile/premium/upsell.dart';
|
import 'package:refilc_plus/ui/mobile/premium/upsell.dart';
|
||||||
@ -147,6 +148,16 @@ class ExtrasSettingsScreenState extends State<ExtrasSettingsScreen> {
|
|||||||
WelcomeMessagePanelButton(settingsProvider, user),
|
WelcomeMessagePanelButton(settingsProvider, user),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
SplittedPanel(
|
||||||
|
padding: const EdgeInsets.only(top: 9.0),
|
||||||
|
cardPadding: const EdgeInsets.all(4.0),
|
||||||
|
isSeparated: true,
|
||||||
|
children: [
|
||||||
|
MenuCalendarSync(
|
||||||
|
borderRadius: BorderRadius.circular(12.0),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -65,6 +65,7 @@ dependencies:
|
|||||||
maps_launcher: ^2.2.0
|
maps_launcher: ^2.2.0
|
||||||
google_fonts: ^6.1.0
|
google_fonts: ^6.1.0
|
||||||
flutter_stripe: ^10.0.0
|
flutter_stripe: ^10.0.0
|
||||||
|
flutter_any_logo: ^1.1.1
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_lints: ^3.0.1
|
flutter_lints: ^3.0.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user