Skip to content

Commit 98e9e96

Browse files
committed
Migrated codebase to getx
1 parent 28962a0 commit 98e9e96

File tree

230 files changed

+8420
-8212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

230 files changed

+8420
-8212
lines changed

.metadata

+20-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: "78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9"
7+
revision: "a14f74ff3a1cbd521163c5f03d68113d50af93d3"
88
channel: "stable"
99

1010
project_type: app
@@ -13,11 +13,26 @@ project_type: app
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
17-
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
16+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
17+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
18+
- platform: android
19+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
20+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
21+
- platform: ios
22+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
23+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
24+
- platform: linux
25+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
26+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
1827
- platform: macos
19-
create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
20-
base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9
28+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
29+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
30+
- platform: web
31+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
32+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
33+
- platform: windows
34+
create_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
35+
base_revision: a14f74ff3a1cbd521163c5f03d68113d50af93d3
2136

2237
# User provided section
2338

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.ccextractor.taskwarrior
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity: FlutterActivity()
Loading
Loading
Loading
Loading
Loading

assets/fonts/OFL.txt

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins)
2+
3+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
4+
This license is copied below, and is also available with a FAQ at:
5+
http://scripts.sil.org/OFL
6+
7+
8+
-----------------------------------------------------------
9+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10+
-----------------------------------------------------------
11+
12+
PREAMBLE
13+
The goals of the Open Font License (OFL) are to stimulate worldwide
14+
development of collaborative font projects, to support the font creation
15+
efforts of academic and linguistic communities, and to provide a free and
16+
open framework in which fonts may be shared and improved in partnership
17+
with others.
18+
19+
The OFL allows the licensed fonts to be used, studied, modified and
20+
redistributed freely as long as they are not sold by themselves. The
21+
fonts, including any derivative works, can be bundled, embedded,
22+
redistributed and/or sold with any software provided that any reserved
23+
names are not used by derivative works. The fonts and derivatives,
24+
however, cannot be released under any other type of license. The
25+
requirement for fonts to remain under this license does not apply
26+
to any document created using the fonts or their derivatives.
27+
28+
DEFINITIONS
29+
"Font Software" refers to the set of files released by the Copyright
30+
Holder(s) under this license and clearly marked as such. This may
31+
include source files, build scripts and documentation.
32+
33+
"Reserved Font Name" refers to any names specified as such after the
34+
copyright statement(s).
35+
36+
"Original Version" refers to the collection of Font Software components as
37+
distributed by the Copyright Holder(s).
38+
39+
"Modified Version" refers to any derivative made by adding to, deleting,
40+
or substituting -- in part or in whole -- any of the components of the
41+
Original Version, by changing formats or by porting the Font Software to a
42+
new environment.
43+
44+
"Author" refers to any designer, engineer, programmer, technical
45+
writer or other person who contributed to the Font Software.
46+
47+
PERMISSION & CONDITIONS
48+
Permission is hereby granted, free of charge, to any person obtaining
49+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
50+
redistribute, and sell modified and unmodified copies of the Font
51+
Software, subject to the following conditions:
52+
53+
1) Neither the Font Software nor any of its individual components,
54+
in Original or Modified Versions, may be sold by itself.
55+
56+
2) Original or Modified Versions of the Font Software may be bundled,
57+
redistributed and/or sold with any software, provided that each copy
58+
contains the above copyright notice and this license. These can be
59+
included either as stand-alone text files, human-readable headers or
60+
in the appropriate machine-readable metadata fields within text or
61+
binary files as long as those fields can be easily viewed by the user.
62+
63+
3) No Modified Version of the Font Software may use the Reserved Font
64+
Name(s) unless explicit written permission is granted by the corresponding
65+
Copyright Holder. This restriction only applies to the primary font name as
66+
presented to the users.
67+
68+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69+
Software shall not be used to promote, endorse or advertise any
70+
Modified Version, except to acknowledge the contribution(s) of the
71+
Copyright Holder(s) and the Author(s) or with their explicit written
72+
permission.
73+
74+
5) The Font Software, modified or unmodified, in part or in whole,
75+
must be distributed entirely under this license, and must not be
76+
distributed under any other license. The requirement for fonts to
77+
remain under this license does not apply to any document created
78+
using the Font Software.
79+
80+
TERMINATION
81+
This license becomes null and void if any of the above conditions are
82+
not met.
83+
84+
DISCLAIMER
85+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93+
OTHER DEALINGS IN THE FONT SOFTWARE.

assets/fonts/Poppins-Bold.ttf

150 KB
Binary file not shown.

assets/fonts/Poppins-ExtraBold.ttf

149 KB
Binary file not shown.

assets/fonts/Poppins-Regular.ttf

154 KB
Binary file not shown.

assets/fonts/SFProDisplay-Regular.ttf

404 KB
Binary file not shown.

assets/fonts/SegoeUI.ttf

33.4 KB
Binary file not shown.

assets/fonts/Ubuntu-Light.ttf

353 KB
Binary file not shown.

ios/RunnerTests/RunnerTests.swift

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import Flutter
2+
import UIKit
3+
import XCTest
4+
5+
class RunnerTests: XCTestCase {
6+
7+
func testExample() {
8+
// If you add code to the Runner application, consider adding tests here.
9+
// See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10+
}
11+
12+
}
File renamed without changes.

lib/model/data.dart renamed to lib/app/models/data.dart

+4-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ import 'dart:collection';
44
import 'dart:convert';
55
import 'dart:io';
66

7-
import 'package:taskwarrior/model/json/task.dart';
8-
import 'package:taskwarrior/services/notification_services.dart';
9-
import 'package:taskwarrior/widgets/taskc/payload.dart';
10-
import 'package:taskwarrior/widgets/taskw.dart';
11-
7+
import 'package:taskwarrior/app/models/json/task.dart';
8+
import 'package:taskwarrior/app/services/notification_services.dart';
9+
import 'package:taskwarrior/app/utils/taskc/payload.dart';
10+
import 'package:taskwarrior/app/utils/taskfunctions/urgency.dart';
1211
class Data {
1312
Data(this.home);
1413

lib/app/models/filters.dart

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import 'package:taskwarrior/app/services/tag_filter.dart';
2+
3+
class Filters {
4+
const Filters({
5+
required this.pendingFilter,
6+
required this.waitingFilter,
7+
required this.togglePendingFilter,
8+
required this.toggleWaitingFilter,
9+
required this.tagFilters,
10+
required this.projects,
11+
required this.projectFilter,
12+
required this.toggleProjectFilter,
13+
});
14+
15+
final bool pendingFilter;
16+
final bool waitingFilter;
17+
final void Function() togglePendingFilter;
18+
final void Function() toggleWaitingFilter;
19+
final TagFilters tagFilters;
20+
final dynamic projects;
21+
final String projectFilter;
22+
final void Function(String) toggleProjectFilter;
23+
}

lib/model/json/annotation.dart renamed to lib/app/models/json/annotation.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
import 'package:built_value/built_value.dart';
44
import 'package:built_value/serializer.dart';
5+
import 'package:taskwarrior/app/models/json/serializers.dart';
6+
57

6-
import 'package:taskwarrior/model/json.dart';
78

89
part 'annotation.g.dart';
910

lib/model/json/serializers.dart renamed to lib/app/models/json/serializers.dart

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
import 'package:built_collection/built_collection.dart';
44
import 'package:built_value/serializer.dart';
55
import 'package:built_value/standard_json_plugin.dart';
6+
import 'package:taskwarrior/app/models/json/annotation.dart';
7+
import 'package:taskwarrior/app/models/json/iso_8601_basic.dart';
8+
import 'package:taskwarrior/app/models/json/task.dart';
9+
610

7-
import 'package:taskwarrior/model/json.dart';
811

912
part 'serializers.g.dart';
1013

lib/model/json/task.dart renamed to lib/app/models/json/task.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import 'dart:convert';
55
import 'package:built_collection/built_collection.dart';
66
import 'package:built_value/built_value.dart';
77
import 'package:built_value/serializer.dart';
8+
import 'package:taskwarrior/app/models/json/annotation.dart';
9+
import 'package:taskwarrior/app/models/json/serializers.dart';
10+
import 'package:taskwarrior/app/utils/taskfunctions/validate.dart';
811

9-
import 'package:taskwarrior/model/json.dart';
10-
import 'package:taskwarrior/widgets/taskw.dart';
1112

1213
part 'task.g.dart';
1314

File renamed without changes.

lib/app/models/models.dart

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export './onboarding_model.dart';
2+
export './size_config_model.dart';
3+
export './json/annotation.dart';
4+
export './json/iso_8601_basic.dart';
5+
export './json/serializers.dart';
6+
export './json/task.dart';

lib/app/models/onboarding_model.dart

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import 'package:flutter/material.dart';
2+
3+
class OnboardingModel {
4+
final String title;
5+
final String image;
6+
final String desc;
7+
final Color colors;
8+
9+
OnboardingModel({
10+
required this.title,
11+
required this.image,
12+
required this.desc,
13+
required this.colors,
14+
});
15+
}

lib/views/Onboarding/Components/size_config.dart renamed to lib/app/models/size_config_model.dart

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import 'package:flutter/material.dart';
22

33
class SizeConfig {
4-
static MediaQueryData? _mediaQueryData;
5-
static double? screenW;
6-
static double? screenH;
7-
static double? blockH;
8-
static double? blockV;
4+
MediaQueryData? _mediaQueryData;
5+
double? screenW;
6+
double? screenH;
7+
double? blockH;
8+
double? blockV;
99

1010
void init(BuildContext context) {
1111
_mediaQueryData = MediaQuery.of(context);

lib/model/storage.dart renamed to lib/app/models/storage.dart

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import 'dart:io';
22

3-
import 'package:taskwarrior/model/data.dart';
4-
import 'package:taskwarrior/model/storage/tabs.dart';
5-
import 'package:taskwarrior/widgets/home_paths/home.dart';
6-
import 'package:taskwarrior/widgets/home_paths/impl/gui_pem_file_paths.dart';
7-
import 'package:taskwarrior/widgets/home_paths/impl/taskrc.dart';
8-
import 'package:taskwarrior/widgets/taskw.dart';
3+
import 'package:taskwarrior/app/models/data.dart';
4+
import 'package:taskwarrior/app/models/storage/tabs.dart';
5+
import 'package:taskwarrior/app/utils/home_path/impl/gui_pem_file_paths.dart';
6+
import 'package:taskwarrior/app/utils/home_path/impl/home.dart';
7+
import 'package:taskwarrior/app/utils/home_path/impl/taskrc.dart';
8+
import 'package:taskwarrior/app/utils/taskfunctions/query.dart';
9+
910

1011
class Storage {
1112
const Storage(this.profile);
File renamed without changes.

lib/model/storage/set_config.dart renamed to lib/app/models/storage/set_config.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import 'dart:io';
22

33
import 'package:file_picker_writable/file_picker_writable.dart';
44
import 'package:file_selector/file_selector.dart';
5+
import 'package:taskwarrior/app/models/storage.dart';
56

6-
import 'package:taskwarrior/model/storage.dart';
77

88
Future<void> setConfig({required Storage storage, required String key}) async {
99
String? contents;
File renamed without changes.

lib/app/models/tag_meta_data.dart

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
class TagMetadata {
2+
TagMetadata({
3+
required this.lastModified,
4+
required this.frequency,
5+
required this.selected,
6+
});
7+
8+
final DateTime lastModified;
9+
final int frequency;
10+
final bool selected;
11+
12+
Map toJson() => {
13+
'lastModified': lastModified,
14+
'frequency': frequency,
15+
'selected': selected,
16+
};
17+
18+
@override
19+
String toString() => toJson().toString();
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import 'package:get/get.dart';
2+
3+
import '../controllers/about_controller.dart';
4+
5+
class AboutBinding extends Bindings {
6+
@override
7+
void dependencies() {
8+
Get.lazyPut<AboutController>(
9+
() => AboutController(),
10+
);
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import 'package:get/get.dart';
2+
3+
class AboutController extends GetxController {
4+
//TODO: Implement AboutController
5+
6+
final count = 0.obs;
7+
8+
9+
10+
void increment() => count.value++;
11+
}

0 commit comments

Comments
 (0)