chore: move development keys to constants file

This commit is contained in:
Rongjian Zhang 2019-02-09 18:20:14 +08:00
parent 282d29f68f
commit 2da8475e8b
4 changed files with 5 additions and 5 deletions

View File

@ -8,6 +8,7 @@ import 'package:nanoid/nanoid.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
import '../utils/utils.dart'; import '../utils/utils.dart';
import '../utils/constants.dart';
class ThemeMap { class ThemeMap {
static const material = 0; static const material = 0;

View File

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
import '../providers/settings.dart'; import '../providers/settings.dart';
import '../scaffolds/simple.dart'; import '../scaffolds/simple.dart';
import '../utils/utils.dart'; import '../utils/constants.dart';
import '../widgets/link.dart'; import '../widgets/link.dart';
class LoginScreen extends StatefulWidget { class LoginScreen extends StatefulWidget {

3
lib/utils/constants.dart Normal file
View File

@ -0,0 +1,3 @@
// These keys are for development
var clientId = '9b7d1cc04a1db5710767';
var clientSecret = '710e085908dde6a8b55f7a9dc447ad5c0c5617d1';

View File

@ -7,10 +7,6 @@ export 'github.dart';
export 'octicons.dart'; export 'octicons.dart';
export 'timeago.dart'; export 'timeago.dart';
// These keys are for development
var clientId = '9b7d1cc04a1db5710767';
var clientSecret = '710e085908dde6a8b55f7a9dc447ad5c0c5617d1';
Color convertColor(String cssHex) { Color convertColor(String cssHex) {
if (cssHex.startsWith('#')) { if (cssHex.startsWith('#')) {
cssHex = cssHex.substring(1); cssHex = cssHex.substring(1);