-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: local database hiveDB addition
- Loading branch information
1 parent
2664d6d
commit 16b503c
Showing
89 changed files
with
1,674 additions
and
2,858 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" | ||
#include "Generated.xcconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" | ||
#include "Generated.xcconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Uncomment this line to define a global platform for your project | ||
# platform :ios, '9.0' | ||
|
||
# CocoaPods analytics sends network stats synchronously affecting flutter build latency. | ||
ENV['COCOAPODS_DISABLE_STATS'] = 'true' | ||
|
||
project 'Runner', { | ||
'Debug' => :debug, | ||
'Profile' => :release, | ||
'Release' => :release, | ||
} | ||
|
||
def flutter_root | ||
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) | ||
unless File.exist?(generated_xcode_build_settings_path) | ||
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" | ||
end | ||
|
||
File.foreach(generated_xcode_build_settings_path) do |line| | ||
matches = line.match(/FLUTTER_ROOT\=(.*)/) | ||
return matches[1].strip if matches | ||
end | ||
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" | ||
end | ||
|
||
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) | ||
|
||
flutter_ios_podfile_setup | ||
|
||
target 'Runner' do | ||
use_frameworks! | ||
use_modular_headers! | ||
|
||
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) | ||
end | ||
|
||
post_install do |installer| | ||
installer.pods_project.targets.each do |target| | ||
flutter_additional_ios_build_settings(target) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
PODS: | ||
- DKImagePickerController/Core (4.3.4): | ||
- DKImagePickerController/ImageDataManager | ||
- DKImagePickerController/Resource | ||
- DKImagePickerController/ImageDataManager (4.3.4) | ||
- DKImagePickerController/PhotoGallery (4.3.4): | ||
- DKImagePickerController/Core | ||
- DKPhotoGallery | ||
- DKImagePickerController/Resource (4.3.4) | ||
- DKPhotoGallery (0.0.17): | ||
- DKPhotoGallery/Core (= 0.0.17) | ||
- DKPhotoGallery/Model (= 0.0.17) | ||
- DKPhotoGallery/Preview (= 0.0.17) | ||
- DKPhotoGallery/Resource (= 0.0.17) | ||
- SDWebImage | ||
- SwiftyGif | ||
- DKPhotoGallery/Core (0.0.17): | ||
- DKPhotoGallery/Model | ||
- DKPhotoGallery/Preview | ||
- SDWebImage | ||
- SwiftyGif | ||
- DKPhotoGallery/Model (0.0.17): | ||
- SDWebImage | ||
- SwiftyGif | ||
- DKPhotoGallery/Preview (0.0.17): | ||
- DKPhotoGallery/Model | ||
- DKPhotoGallery/Resource | ||
- SDWebImage | ||
- SwiftyGif | ||
- DKPhotoGallery/Resource (0.0.17): | ||
- SDWebImage | ||
- SwiftyGif | ||
- file_picker (0.0.1): | ||
- DKImagePickerController/PhotoGallery | ||
- Flutter | ||
- Flutter (1.0.0) | ||
- fluttertoast (0.0.2): | ||
- Flutter | ||
- Toast | ||
- path_provider_ios (0.0.1): | ||
- Flutter | ||
- SDWebImage (5.13.2): | ||
- SDWebImage/Core (= 5.13.2) | ||
- SDWebImage/Core (5.13.2) | ||
- SwiftyGif (5.4.3) | ||
- Toast (4.0.0) | ||
|
||
DEPENDENCIES: | ||
- file_picker (from `.symlinks/plugins/file_picker/ios`) | ||
- Flutter (from `Flutter`) | ||
- fluttertoast (from `.symlinks/plugins/fluttertoast/ios`) | ||
- path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`) | ||
|
||
SPEC REPOS: | ||
trunk: | ||
- DKImagePickerController | ||
- DKPhotoGallery | ||
- SDWebImage | ||
- SwiftyGif | ||
- Toast | ||
|
||
EXTERNAL SOURCES: | ||
file_picker: | ||
:path: ".symlinks/plugins/file_picker/ios" | ||
Flutter: | ||
:path: Flutter | ||
fluttertoast: | ||
:path: ".symlinks/plugins/fluttertoast/ios" | ||
path_provider_ios: | ||
:path: ".symlinks/plugins/path_provider_ios/ios" | ||
|
||
SPEC CHECKSUMS: | ||
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac | ||
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179 | ||
file_picker: 3e6c3790de664ccf9b882732d9db5eaf6b8d4eb1 | ||
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a | ||
fluttertoast: 16fbe6039d06a763f3533670197d01fc73459037 | ||
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02 | ||
SDWebImage: 72f86271a6f3139cc7e4a89220946489d4b9a866 | ||
SwiftyGif: 6c3eafd0ce693cad58bb63d2b2fb9bacb8552780 | ||
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196 | ||
|
||
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c | ||
|
||
COCOAPODS: 1.11.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import 'package:doxbox/providers/navBarProvider.dart'; | ||
import 'package:doxbox/utilities/colors.dart'; | ||
import 'package:doxbox/views/settings/settings_screen.dart'; | ||
import 'package:doxbox/views/upload/upload_screen.dart'; | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_feather_icons/flutter_feather_icons.dart'; | ||
import 'package:provider/provider.dart'; | ||
|
||
import 'views/home/home_screen.dart'; | ||
|
||
class BottomNavBarScreen extends StatefulWidget { | ||
const BottomNavBarScreen({Key? key}) : super(key: key); | ||
|
||
@override | ||
State<BottomNavBarScreen> createState() => _BottomNavBarscreenstate(); | ||
} | ||
|
||
class _BottomNavBarscreenstate extends State<BottomNavBarScreen> { | ||
static final List<Widget> _widgetOptions = <Widget>[ | ||
HomeScreen(), | ||
UploadScreen(), | ||
SettingsScreen(), | ||
]; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return MaterialApp( | ||
debugShowCheckedModeBanner: false, | ||
home: Consumer<BottomNavBarProvider>( | ||
builder: (context, navBarViewModel, _) { | ||
return Scaffold( | ||
backgroundColor: Nord.bg, | ||
body: _widgetOptions.elementAt(navBarViewModel.navBarSelectedIndex), | ||
bottomNavigationBar: BottomNavigationBar( | ||
type: BottomNavigationBarType.fixed, | ||
backgroundColor: Nord.bbg, | ||
selectedItemColor: Nord.orange, | ||
unselectedItemColor: Neutrals.n5, | ||
showSelectedLabels: false, | ||
showUnselectedLabels: false, | ||
onTap: navBarViewModel.changeNavBarSelectedIndex, | ||
currentIndex: navBarViewModel.navBarSelectedIndex, | ||
items: const [ | ||
BottomNavigationBarItem( | ||
icon: Icon(FeatherIcons.home), | ||
label: 'Home', | ||
), | ||
BottomNavigationBarItem( | ||
icon: Icon(FeatherIcons.plusCircle), | ||
label: 'Home', | ||
), | ||
BottomNavigationBarItem( | ||
icon: Icon(FeatherIcons.settings), | ||
label: 'Home', | ||
), | ||
], | ||
), | ||
); | ||
}, | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.