Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
richtwin567 committed Sep 6, 2020
1 parent 1cc7245 commit 3721aea
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 22 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 29
compileSdkVersion 28

lintOptions {
disable 'InvalidPackage'
Expand All @@ -35,7 +35,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.fst_app_flutter"
minSdkVersion 16
targetSdkVersion 29
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
NativeContact contact = new NativeContact((HashMap<String, Object>) call.arguments);
contact.saveNatively(this);
} catch (Exception e) {
//System.out.println(e.getMessage());
}
} else {
result.notImplemented();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public NativeContact(HashMap<String, Object> map) {
}
}
} catch (Exception e) {
//System.out.println(e.getMessage());
}


Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
5 changes: 0 additions & 5 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ class FSTApp extends StatelessWidget {
create: (context) => themeModel,
builder: (context, child) => Consumer<ThemeModel>(
builder: (context, themeModel, child) {
/* SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: AppTheme.getTheme(themeModel.selectedTheme,
MediaQuery.platformBrightnessOf(context))
.primaryColor,
)); */
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: AppTheme.getTheme(ThemeMode.light,
Expand Down
1 change: 0 additions & 1 deletion lib/models/from_postgres/contact/contact_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ class Contact {
await channel.invokeMethod('saveNatively', toNativeMap());
}
} catch (e) {
print(e);
}
}
}
Expand Down
1 change: 0 additions & 1 deletion lib/models/from_postgres/map/geo_json_types/feature.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class Feature extends GeoJsonObject {
id = feature['id'];
var uknGeometry = feature['geometry'];
var newCoords = uknGeometry['coordinates'];
//print(newCoords);
switch (stringToGeometryType(uknGeometry['geometry_type'])) {
case GeoJsonGeometryType.point:
geometry = GeoJsonPoint(coordsJson: newCoords);
Expand Down
1 change: 0 additions & 1 deletion lib/models/from_postgres/map/geometry_types/point.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class GeoJsonPoint extends GeoJsonGeometryObject {
GeoJsonPoint({@required coordsJson})
: assert(coordsJson != null),
super(GeoJsonGeometryType.point) {
//print(coordsJSON[0]['longitude'] is double);
_coordinates = GeoJsonPosition(
newLongitude: coordsJson[0]['longitude'],
newLatitude: coordsJson[0]['latitude']);
Expand Down
11 changes: 3 additions & 8 deletions lib/screens/contact_screen/contact_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,9 @@ abstract class ContactViewState extends State<ContactViewStateful>
/// Toggles the [AppBar] between the page title and the search [TextField] and
/// hiding the [filterDropdown].
void revealSearchField({@required double searchFieldWidth}) {
print('p');
if (dropdownController.isDismissed) {
print('k');
toggleAppBarAnimation();
print('j');
toggleFilterDropdownAnimation().then((value) {
print('m');
appBarLeading = null;
extraActions = false;
appBarTitle = Container(
Expand Down Expand Up @@ -216,7 +212,7 @@ abstract class ContactViewState extends State<ContactViewStateful>
begin: themeModel.isDark
? Color.alphaBlend(overlayColor, theme.primaryColor)
: theme.primaryColor,
end: theme.scaffoldBackgroundColor);
end: themeModel.isDark? Color.alphaBlend(overlayColor, theme.scaffoldBackgroundColor): theme.scaffoldBackgroundColor);
return AnimatedBuilder(
animation: appBarColorController,
builder: (BuildContext context, Widget child) {
Expand All @@ -236,7 +232,6 @@ abstract class ContactViewState extends State<ContactViewStateful>
animationName:
themeModel.isDark ? 'white_to_white' : 'white_to_black',
setStateFunction: () {
print('o');
this.revealSearchField(
searchFieldWidth: MediaQuery.of(context).size.width);
},
Expand Down Expand Up @@ -386,7 +381,7 @@ abstract class ContactViewState extends State<ContactViewStateful>
namedRoute: contactDetailRoute,
arguments: contacts[index],
),
Divider()
Divider( thickness: 1.0,color: Theme.of(context).accentColor)
]);
}),
);
Expand All @@ -411,7 +406,7 @@ abstract class ContactViewState extends State<ContactViewStateful>
mainAxisSize: MainAxisSize.max,
verticalDirection: VerticalDirection.down,
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceAround,
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
Expanded(
child: FutureBuilder(
Expand Down
1 change: 0 additions & 1 deletion lib/utils/social_media_contact_share.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@ shareContactToWhatsApp(VCard vCard) async {
);
}
} catch (e) {
//print(e);
}
}

0 comments on commit 3721aea

Please sign in to comment.