Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercy811 committed Feb 13, 2024
1 parent f274e9b commit c0b7622
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 34 deletions.
38 changes: 19 additions & 19 deletions example/lib/deviceid_sessionid.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'app_state.dart';
// import 'app_state.dart';

class DeviceIdSessionId extends StatefulWidget {
@override
Expand All @@ -16,29 +16,29 @@ class _DeviceIdSessionIdState extends State<DeviceIdSessionId> {
Text('Device Id', style: Theme.of(context).textTheme.headlineSmall),
],
),
Row(
children: [
FutureBuilder(
// future: AppState.of(context).analytics.getDeviceId(),
builder: (BuildContext context, AsyncSnapshot<dynamic> snapshot) {
return Text(snapshot.data.toString());
},
),
],
),
// Row(
// children: [
// FutureBuilder(
// // future: AppState.of(context).analytics.getDeviceId(),
// builder: (BuildContext context, AsyncSnapshot<dynamic> snapshot) {
// return Text(snapshot.data.toString());
// },
// ),
// ],
// ),
Row(
children: [
Text('Session Id', style: Theme.of(context).textTheme.headlineSmall),
],
),
Row(children: [
FutureBuilder(
// future: AppState.of(context).analytics.getSessionId(),
builder: (BuildContext context, AsyncSnapshot<dynamic> snapshot) {
return Text(snapshot.data.toString());
},
),
])
// Row(children: [
// FutureBuilder(
// // future: AppState.of(context).analytics.getSessionId(),
// builder: (BuildContext context, AsyncSnapshot<dynamic> snapshot) {
// return Text(snapshot.data.toString());
// },
// ),
// ])
],
);
}
Expand Down
4 changes: 2 additions & 2 deletions example/lib/group_identify_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class _GroupIdentifyFormState extends State<GroupIdentifyForm> {
groupValue.text.isNotEmpty &&
groupPropertyKey.text.isNotEmpty &&
groupPropertyValue.text.isNotEmpty) {
final Identify identify = Identify()
..set(groupPropertyKey.text, groupPropertyValue.text);
// final Identify identify = Identify()
// ..set(groupPropertyKey.text, groupPropertyValue.text);

AppState.of(context)
// ..analytics.groupIdentify(groupType.text, groupValue.text, identify)
Expand Down
10 changes: 5 additions & 5 deletions example/lib/my_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ class _MyAppState extends State<MyApp> {
// analytics.logEvent('Opt Out Event');
// analytics.setOptOut(false);

Map<String, dynamic> userProps = {
'date': '01.06.2020',
'name': 'Name',
'buildNumber': '1.1.1',
};
// Map<String, dynamic> userProps = {
// 'date': '01.06.2020',
// 'name': 'Name',
// 'buildNumber': '1.1.1',
// };
// analytics.logRevenueAmount(21.9);
// analytics.setUserProperties(userProps);
}
Expand Down
2 changes: 1 addition & 1 deletion example/lib/revenue_form.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'app_state.dart';
// import 'app_state.dart';

class RevenueForm extends StatefulWidget {
@override
Expand Down
12 changes: 6 additions & 6 deletions example/lib/user_id_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ class _UserIdFormState extends State<UserIdForm> {
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text('Current User Id', style: Theme.of(context).textTheme.headlineSmall),
FutureBuilder(
// future: AppState.of(context).analytics.getUserId(),
builder: (BuildContext context, AsyncSnapshot<dynamic> snapshot) {
return Text(snapshot.data.toString());
},
),
// FutureBuilder(
// // future: AppState.of(context).analytics.getUserId(),
// builder: (BuildContext context, AsyncSnapshot<dynamic> snapshot) {
// return Text(snapshot.data.toString());
// },
// ),
const SizedBox(height: 10),
Text('User Id', style: Theme.of(context).textTheme.headlineSmall),
const SizedBox(height: 10),
Expand Down
1 change: 0 additions & 1 deletion test/tracking_options_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:test/test.dart';
import 'package:amplitude_flutter/tracking_options.dart';
import 'package:amplitude_flutter/constants.dart';

void main() {
group("TrackingOptions", () {
Expand Down

0 comments on commit c0b7622

Please sign in to comment.