Updated dependencies
This commit is contained in:
parent
e7192008c0
commit
1374666858
68
lib/app.dart
68
lib/app.dart
@ -5,7 +5,7 @@ import 'dart:developer';
|
|||||||
import 'package:easy_debounce/easy_throttle.dart';
|
import 'package:easy_debounce/easy_throttle.dart';
|
||||||
import 'package:firebase_messaging/firebase_messaging.dart';
|
import 'package:firebase_messaging/firebase_messaging.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:persistent_bottom_nav_bar_v2/persistent-tab-view.dart';
|
import 'package:persistent_bottom_nav_bar_v2/persistent_bottom_nav_bar_v2.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:badges/badges.dart' as badges;
|
import 'package:badges/badges.dart' as badges;
|
||||||
|
|
||||||
@ -93,32 +93,27 @@ class _AppState extends State<App> with WidgetsBindingObserver {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return PersistentTabView(
|
return PersistentTabView(
|
||||||
context,
|
|
||||||
controller: App.bottomNavigator,
|
controller: App.bottomNavigator,
|
||||||
navBarStyle: NavBarStyle.style6,
|
gestureNavigationEnabled: true,
|
||||||
hideNavigationBarWhenKeyboardShows: true,
|
navBarOverlap: const NavBarOverlap.none(),
|
||||||
navBarHeight: MediaQuery.of(context).viewInsets.bottom > 0 ? 0.0 : kBottomNavigationBarHeight,
|
backgroundColor: Theme.of(context).colorScheme.primary,
|
||||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
|
||||||
decoration: const NavBarDecoration(
|
screenTransitionAnimation: const ScreenTransitionAnimation(curve: Curves.easeOutQuad, duration: Duration(milliseconds: 200)),
|
||||||
border: Border(top: BorderSide(width: 1, color: Colors.grey)),
|
tabs: [
|
||||||
),
|
PersistentTabConfig(
|
||||||
screenTransitionAnimation: const ScreenTransitionAnimation(animateTabTransition: true, curve: Curves.ease, duration: Duration(milliseconds: 200)),
|
screen: const Breaker(breaker: BreakerArea.timetable, child: Timetable()),
|
||||||
screens: const [
|
item: ItemConfig(
|
||||||
Breaker(breaker: BreakerArea.timetable, child: Timetable()),
|
activeForegroundColor: Theme.of(context).primaryColor,
|
||||||
Breaker(breaker: BreakerArea.talk, child: ChatList()),
|
inactiveForegroundColor: Theme.of(context).colorScheme.secondary,
|
||||||
Breaker(breaker: BreakerArea.files, child: Files([])),
|
|
||||||
Breaker(breaker: BreakerArea.more, child: Overhang()),
|
|
||||||
],
|
|
||||||
items: [
|
|
||||||
PersistentBottomNavBarItem(
|
|
||||||
activeColorPrimary: Theme.of(context).primaryColor,
|
|
||||||
inactiveColorPrimary: Theme.of(context).colorScheme.secondary,
|
|
||||||
icon: const Icon(Icons.calendar_month),
|
icon: const Icon(Icons.calendar_month),
|
||||||
title: "Vertretung"
|
title: "Vertretung"
|
||||||
),
|
),
|
||||||
PersistentBottomNavBarItem(
|
),
|
||||||
activeColorPrimary: Theme.of(context).primaryColor,
|
PersistentTabConfig(
|
||||||
inactiveColorPrimary: Theme.of(context).colorScheme.secondary,
|
screen: const Breaker(breaker: BreakerArea.talk, child: ChatList()),
|
||||||
|
item: ItemConfig(
|
||||||
|
activeForegroundColor: Theme.of(context).primaryColor,
|
||||||
|
inactiveForegroundColor: Theme.of(context).colorScheme.secondary,
|
||||||
icon: Consumer<ChatListProps>(
|
icon: Consumer<ChatListProps>(
|
||||||
builder: (context, value, child) {
|
builder: (context, value, child) {
|
||||||
if(value.primaryLoading()) return const Icon(Icons.chat);
|
if(value.primaryLoading()) return const Icon(Icons.chat);
|
||||||
@ -139,21 +134,34 @@ class _AppState extends State<App> with WidgetsBindingObserver {
|
|||||||
),
|
),
|
||||||
title: "Talk",
|
title: "Talk",
|
||||||
),
|
),
|
||||||
PersistentBottomNavBarItem(
|
),
|
||||||
activeColorPrimary: Theme.of(context).primaryColor,
|
PersistentTabConfig(
|
||||||
inactiveColorPrimary: Theme.of(context).colorScheme.secondary,
|
screen: const Breaker(breaker: BreakerArea.files, child: Files([])),
|
||||||
|
item: ItemConfig(
|
||||||
|
activeForegroundColor: Theme.of(context).primaryColor,
|
||||||
|
inactiveForegroundColor: Theme.of(context).colorScheme.secondary,
|
||||||
icon: const Icon(Icons.folder),
|
icon: const Icon(Icons.folder),
|
||||||
title: "Dateien"
|
title: "Dateien"
|
||||||
),
|
),
|
||||||
PersistentBottomNavBarItem(
|
),
|
||||||
activeColorPrimary: Theme.of(context).primaryColor,
|
PersistentTabConfig(
|
||||||
inactiveColorPrimary: Theme.of(context).colorScheme.secondary,
|
screen: const Breaker(breaker: BreakerArea.more, child: Overhang()),
|
||||||
|
item: ItemConfig(
|
||||||
|
activeForegroundColor: Theme.of(context).primaryColor,
|
||||||
|
inactiveForegroundColor: Theme.of(context).colorScheme.secondary,
|
||||||
icon: const Icon(Icons.apps),
|
icon: const Icon(Icons.apps),
|
||||||
title: "Mehr"
|
title: "Mehr"
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
|
navBarBuilder: (config) => Style6BottomNavBar(
|
||||||
|
navBarConfig: config,
|
||||||
|
navBarDecoration: NavBarDecoration(
|
||||||
|
border: const Border(top: BorderSide(width: 1, color: Colors.grey)),
|
||||||
|
color: Theme.of(context).colorScheme.surface,
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -238,6 +238,7 @@ class _FilesState extends State<Files> {
|
|||||||
return Future.delayed(const Duration(seconds: 3));
|
return Future.delayed(const Duration(seconds: 3));
|
||||||
},
|
},
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
|
padding: EdgeInsets.zero,
|
||||||
itemCount: files.length,
|
itemCount: files.length,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
CacheableFile file = files.toList()[index];
|
CacheableFile file = files.toList()[index];
|
||||||
|
@ -4,7 +4,7 @@ import 'dart:io';
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:in_app_review/in_app_review.dart';
|
import 'package:in_app_review/in_app_review.dart';
|
||||||
import 'package:marianum_mobile/extensions/renderNotNull.dart';
|
import 'package:marianum_mobile/extensions/renderNotNull.dart';
|
||||||
import 'package:persistent_bottom_nav_bar_v2/persistent-tab-view.dart';
|
import 'package:persistent_bottom_nav_bar_v2/persistent_bottom_nav_bar_v2.dart';
|
||||||
|
|
||||||
import '../../widget/ListItem.dart';
|
import '../../widget/ListItem.dart';
|
||||||
import '../../widget/centeredLeading.dart';
|
import '../../widget/centeredLeading.dart';
|
||||||
@ -27,7 +27,7 @@ class Overhang extends StatelessWidget {
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: const Text("Mehr"),
|
title: const Text("Mehr"),
|
||||||
actions: [
|
actions: [
|
||||||
IconButton(onPressed: () => pushNewScreen(context, screen: const Settings(), withNavBar: false), icon: const Icon(Icons.settings))
|
IconButton(onPressed: () => pushScreen(context, screen: const Settings(), withNavBar: false), icon: const Icon(Icons.settings))
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
body: ListView(
|
body: ListView(
|
||||||
@ -55,9 +55,7 @@ class Overhang extends StatelessWidget {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Visibility(
|
return ListTile(
|
||||||
visible: snapshot.requireData,
|
|
||||||
child: ListTile(
|
|
||||||
leading: const CenteredLeading(Icon(Icons.star_rate_outlined)),
|
leading: const CenteredLeading(Icon(Icons.star_rate_outlined)),
|
||||||
title: const Text("App Bewerten"),
|
title: const Text("App Bewerten"),
|
||||||
subtitle: getPlatformStoreName().wrapNullable((data) => Text("Im $data")),
|
subtitle: getPlatformStoreName().wrapNullable((data) => Text("Im $data")),
|
||||||
@ -68,7 +66,6 @@ class Overhang extends StatelessWidget {
|
|||||||
onError: (error) => InfoDialog.show(context, error.toString())
|
onError: (error) => InfoDialog.show(context, error.toString())
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -136,7 +136,10 @@ class _ChatListState extends State<ChatList> {
|
|||||||
_query(renew: true);
|
_query(renew: true);
|
||||||
return Future.delayed(const Duration(seconds: 3));
|
return Future.delayed(const Duration(seconds: 3));
|
||||||
},
|
},
|
||||||
child: ListView(children: chats),
|
child: ListView(
|
||||||
|
padding: EdgeInsets.zero,
|
||||||
|
children: chats
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -129,7 +129,10 @@ class _ChatViewState extends State<ChatView> {
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
color: Theme.of(context).colorScheme.background,
|
color: Theme.of(context).colorScheme.background,
|
||||||
child: SafeArea(child: ChatTextfield(widget.room.token)),
|
child: TalkNavigator.isSecondaryVisible(context)
|
||||||
|
? ChatTextfield(widget.room.token)
|
||||||
|
: SafeArea(child: ChatTextfield(widget.room.token)
|
||||||
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_split_view/flutter_split_view.dart';
|
import 'package:flutter_split_view/flutter_split_view.dart';
|
||||||
import 'package:persistent_bottom_nav_bar_v2/persistent-tab-view.dart';
|
import 'package:persistent_bottom_nav_bar_v2/persistent_bottom_nav_bar_v2.dart';
|
||||||
|
|
||||||
class TalkNavigator {
|
class TalkNavigator {
|
||||||
static bool hasSplitViewState(BuildContext context) => context.findAncestorStateOfType<SplitViewState>() != null;
|
static bool hasSplitViewState(BuildContext context) => context.findAncestorStateOfType<SplitViewState>() != null;
|
||||||
@ -12,7 +12,7 @@ class TalkNavigator {
|
|||||||
SplitViewState splitView = SplitView.of(context);
|
SplitViewState splitView = SplitView.of(context);
|
||||||
overrideToSingleSubScreen ? splitView.setSecondary(view) : splitView.push(view);
|
overrideToSingleSubScreen ? splitView.setSecondary(view) : splitView.push(view);
|
||||||
} else {
|
} else {
|
||||||
pushNewScreen(context, screen: view, withNavBar: false);
|
pushScreen(context, screen: view, withNavBar: false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -5,7 +5,7 @@ import 'package:bottom_sheet/bottom_sheet.dart';
|
|||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:jiffy/jiffy.dart';
|
import 'package:jiffy/jiffy.dart';
|
||||||
import 'package:persistent_bottom_nav_bar_v2/persistent-tab-view.dart';
|
import 'package:persistent_bottom_nav_bar_v2/persistent_bottom_nav_bar_v2.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:rrule/rrule.dart';
|
import 'package:rrule/rrule.dart';
|
||||||
import 'package:syncfusion_flutter_calendar/calendar.dart';
|
import 'package:syncfusion_flutter_calendar/calendar.dart';
|
||||||
@ -103,7 +103,7 @@ class AppointmentDetails {
|
|||||||
trailing: IconButton(
|
trailing: IconButton(
|
||||||
icon: const Icon(Icons.house_outlined),
|
icon: const Icon(Icons.house_outlined),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
pushNewScreen(context, withNavBar: false, screen: const Roomplan());
|
pushScreen(context, withNavBar: false, screen: const Roomplan());
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:persistent_bottom_nav_bar_v2/persistent-tab-view.dart';
|
import 'package:persistent_bottom_nav_bar_v2/persistent_bottom_nav_bar_v2.dart';
|
||||||
|
|
||||||
class ListItemNavigator extends StatelessWidget {
|
class ListItemNavigator extends StatelessWidget {
|
||||||
const ListItemNavigator({super.key, required this.icon, required this.text, required this.target, this.onLongPress, this.arrow = true});
|
const ListItemNavigator({super.key, required this.icon, required this.text, required this.target, this.onLongPress, this.arrow = true});
|
||||||
@ -15,7 +15,7 @@ class ListItemNavigator extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
onTabAction() => pushNewScreen(context, withNavBar: false, screen: target); //Navigator.push(context, MaterialPageRoute(builder: (context) => target));
|
onTabAction() => pushScreen(context, withNavBar: false, screen: target); //Navigator.push(context, MaterialPageRoute(builder: (context) => target));
|
||||||
onLongPressAction() => onLongPress;
|
onLongPressAction() => onLongPress;
|
||||||
|
|
||||||
return ListTile(
|
return ListTile(
|
||||||
|
12
pubspec.yaml
12
pubspec.yaml
@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 0.0.7+31
|
version: 0.0.7+32
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>3.0.0'
|
sdk: '>3.0.0'
|
||||||
@ -68,10 +68,10 @@ dependencies:
|
|||||||
flowder:
|
flowder:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/Harsh223/flowder.git
|
url: https://github.com/Harsh223/flowder.git
|
||||||
persistent_bottom_nav_bar_v2: ^4.2.8
|
persistent_bottom_nav_bar_v2: ^5.0.0
|
||||||
badges: ^3.0.2
|
badges: ^3.0.2
|
||||||
image_picker: ^1.0.0
|
image_picker: ^1.0.0
|
||||||
file_picker: ^6.1.1
|
file_picker: ^8.0.0+1
|
||||||
loader_overlay: ^4.0.0
|
loader_overlay: ^4.0.0
|
||||||
crypto: ^3.0.3
|
crypto: ^3.0.3
|
||||||
package_info: ^2.0.2
|
package_info: ^2.0.2
|
||||||
@ -84,16 +84,16 @@ dependencies:
|
|||||||
firebase_messaging: ^14.6.5
|
firebase_messaging: ^14.6.5
|
||||||
firebase_core: ^2.15.0
|
firebase_core: ^2.15.0
|
||||||
firebase_in_app_messaging: ^0.7.3+4
|
firebase_in_app_messaging: ^0.7.3+4
|
||||||
flutter_local_notifications: ^16.3.0
|
flutter_local_notifications: ^17.0.0
|
||||||
fast_rsa: ^3.6.1
|
fast_rsa: ^3.6.1
|
||||||
share_plus: ^7.1.0
|
share_plus: ^8.0.2
|
||||||
flutter_split_view: ^0.1.2
|
flutter_split_view: ^0.1.2
|
||||||
bottom_sheet: ^4.0.0
|
bottom_sheet: ^4.0.0
|
||||||
device_info_plus: ^9.0.3
|
device_info_plus: ^9.0.3
|
||||||
flutter_app_badger: ^1.5.0
|
flutter_app_badger: ^1.5.0
|
||||||
qr_flutter: ^4.1.0
|
qr_flutter: ^4.1.0
|
||||||
easy_debounce: ^2.0.3
|
easy_debounce: ^2.0.3
|
||||||
rrule_generator: ^0.5.6
|
rrule_generator: ^0.7.0+1
|
||||||
rrule: ^0.2.16
|
rrule: ^0.2.16
|
||||||
time_range_picker: ^2.2.0
|
time_range_picker: ^2.2.0
|
||||||
in_app_review: ^2.0.8
|
in_app_review: ^2.0.8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user