Skip to content

Commit

Permalink
fractional ratio 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
Koushikphy committed Apr 5, 2022
1 parent 2e85544 commit 81bcd92
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions lib/pages/newentry_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ class _NewEntryLogState extends State<NewEntryLog> {
// _categoryEditor.clear();
// _dateEditor.text = DateTime.now().toString();
shareList = {for (var u in model.getUsers) u: "0.00"};
_sharedRatio = _users.map((e) => 1.0).toList();
// _checkList = _users.map((_) => false).toList();
for (TextEditingController e in _shareControler) {
e.text = "0.00";
Expand Down
4 changes: 1 addition & 3 deletions lib/pages/profile_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ import 'package:shared_expenses/scoped_model/expenseScope.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:file_picker/file_picker.dart';
import 'dart:io';
// import 'package:permission_handler/permission_handler.dart';
import 'package:path_provider/path_provider.dart';
import 'package:shared_expenses/pages/addUser_page.dart';
import 'package:intl/intl.dart';
import 'dart:convert';
import 'package:animations/animations.dart';
// import 'package:share/share.dart';
import 'package:share_plus/share_plus.dart';

class ProfilePage extends StatefulWidget {
Expand Down Expand Up @@ -260,7 +258,7 @@ class _ProfilePageState extends State<ProfilePage> {

var _url = 'https://github.com/Koushikphy/Shared-Expense-Manager';
void _launchURL() async {
await canLaunch(_url) ? await launch(_url) : throw 'Could not launch $_url';
if (!await launch(_url)) throw 'Could not launch $_url';
}

bool notContains(List<String> source, List<String> dest) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ packages:
name: url_launcher
url: "https://pub.dartlang.org"
source: hosted
version: "6.0.17"
version: "6.0.20"
url_launcher_android:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Shared Expense Manager

publish_to: "none" # Remove this line if you wish to publish to pub.dev

version: 0.1.2+2
version: 0.1.3+3

environment:
sdk: ">=2.7.0 <3.0.0"
Expand All @@ -22,7 +22,7 @@ dependencies:
intl: ^0.17.0
select_form_field: "^2.0.0"
scoped_model: ^1.1.0
url_launcher: ^6.0.3
url_launcher: ^6.0.20
path_provider: ^2.0.1
shared_preferences: ^2.0.5
file_picker: ^4.3.0
Expand Down

0 comments on commit 81bcd92

Please sign in to comment.