Skip to content

Commit

Permalink
Merge pull request #64 from eloiJhn/feature/add-board
Browse files Browse the repository at this point in the history
Feature/add board
  • Loading branch information
PikPakPik authored Mar 20, 2024
2 parents 6f14392 + d4ab924 commit 9094981
Show file tree
Hide file tree
Showing 11 changed files with 911 additions and 393 deletions.
29 changes: 29 additions & 0 deletions android/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "87151672734",
"project_id": "trelltech-5a6ad",
"storage_bucket": "trelltech-5a6ad.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:87151672734:android:42139890d5d5705fc42a8f",
"android_client_info": {
"package_name": "com.dev600.nan2.trelltech"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyCwW21JzPiNAG1Hfa6btTwE0muge-GbBVg"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
29 changes: 29 additions & 0 deletions google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "87151672734",
"project_id": "trelltech-5a6ad",
"storage_bucket": "trelltech-5a6ad.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:87151672734:android:caa5026e4ffad71dc42a8f",
"android_client_info": {
"package_name": "com.dev600.nan2.trelltech"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyCwW21JzPiNAG1Hfa6btTwE0muge-GbBVg"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
7 changes: 7 additions & 0 deletions ios/firebase_app_id_file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"file_generated_by": "FlutterFire CLI",
"purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
"GOOGLE_APP_ID": "1:87151672734:ios:25efc20cf9c69ebac42a8f",
"FIREBASE_PROJECT_ID": "trelltech-5a6ad",
"GCM_SENDER_ID": "87151672734"
}
3 changes: 1 addition & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Future main() async {
runApp(const MyApp());
}


class MyApp extends StatelessWidget {
const MyApp({super.key});

Expand All @@ -35,4 +34,4 @@ class MyApp extends StatelessWidget {
},
);
}
}
}
31 changes: 31 additions & 0 deletions lib/models/trello_board_template.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
class TrelloBoardTemplate {
final String id;
final String name;
final String description;
String? backgroundImage;
String? backgroundColor;
final int viewCount;
final int copyCount;

TrelloBoardTemplate({
required this.id,
required this.name,
required this.description,
this.backgroundImage,
this.backgroundColor,
required this.viewCount,
required this.copyCount,
});

factory TrelloBoardTemplate.fromJson(Map<String, dynamic> json) {
return TrelloBoardTemplate(
id: json['id'],
name: json['name'],
description: json['desc'],
backgroundImage: json['prefs']['backgroundImage'],
backgroundColor: json['prefs']['backgroundColor'],
viewCount: json['templateGallery']['stats']['viewCount'],
copyCount: json['templateGallery']['stats']['copyCount'],
);
}
}
Loading

0 comments on commit 9094981

Please sign in to comment.