Skip to content

Commit

Permalink
upgrade version
Browse files Browse the repository at this point in the history
  • Loading branch information
kidozh committed Dec 2, 2024
1 parent 28bef42 commit 9619f0f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions lib/app/MainApp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
int _bottomNavigationbarIndex = 0;
late List<Widget> bodies = [];
late UserDao _userDao;
late DiscuzDao _discuzDao;

//
List<Discuz> _allDiscuzs = [];
Expand Down Expand Up @@ -457,7 +456,6 @@ class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {

void _initDb() async {
_userDao = await AppDatabase.getUserDao();
_discuzDao = await AppDatabase.getDiscuzDao();
}

void _setFirstUserInDiscuz(Discuz discuz) async {
Expand Down Expand Up @@ -588,14 +586,14 @@ class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
@override
Widget build(BuildContext context) {
// need to check whether discuz exists in dataset
User? user =
Provider.of<DiscuzAndUserNotifier>(context, listen: false).user;
if (user == null && _bottomNavigationbarIndex >= 2) {
_bottomNavigationbarIndex = 0;
}

CustomizeColor.updateAndroidNavigationbarColorWithDashboard(context);
double width = MediaQuery.sizeOf(context).width;
if(true){
return Consumer<DiscuzAndUserNotifier>(builder: (context, discuzAndUser, child){
User? user =
Provider.of<DiscuzAndUserNotifier>(context, listen: false).user;
if (user == null && _bottomNavigationbarIndex >= 2) {
_bottomNavigationbarIndex = 0;
}
return PlatformScaffold(
appBar: PlatformAppBar(
title: Consumer<DiscuzAndUserNotifier>(
Expand All @@ -615,7 +613,7 @@ class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
),
if (value.user == null)
Text(S.of(context).incognitoTitle,
style: TextStyle(fontSize: 12),
style: TextStyle(fontSize: 12),
textAlign: TextAlign.center,
),
if (value.user != null)
Expand Down Expand Up @@ -758,7 +756,8 @@ class _MyHomePageState extends State<MyHomePage> with WidgetsBindingObserver {
),

);
}
});

}

}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.5.3+84
version: 1.5.4+85

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down

0 comments on commit 9619f0f

Please sign in to comment.