Skip to content

Commit

Permalink
fixes imports
Browse files Browse the repository at this point in the history
  • Loading branch information
andreromao committed Nov 21, 2023
1 parent a635ac8 commit c8b08cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 2 additions & 7 deletions frontend/lib/routes/company/CreateRep.dart
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import 'package:flutter/material.dart';
import 'package:frontend/components/blurryDialog.dart';
import 'package:frontend/components/DisplayContactCompany.dart';
import 'package:frontend/models/contact.dart';
import 'package:frontend/services/companyService.dart';
import 'package:frontend/services/companyRepService.dart';
import 'package:frontend/models/company.dart';
import 'package:frontend/components/EditContact.dart';
import 'package:frontend/components/DisplayContactCompany.dart';
import 'package:frontend/routes/company/CompanyTableNotifier.dart';
import 'package:frontend/services/authService.dart';
import 'package:provider/provider.dart';
import 'package:shimmer/shimmer.dart';

class CreateRep extends StatefulWidget {
Company company;
Expand Down Expand Up @@ -181,8 +177,7 @@ class _CreateRepState extends State<CreateRep> {
],
),
body: FutureBuilder(
future:
companyRepService.getCompanyReps(company: widget.company.id),
future: companyRepService.getCompanyReps(company: widget.company.id),
builder: (context, snapshot) {
if (snapshot.hasError) {
print(snapshot.error);
Expand Down
3 changes: 1 addition & 2 deletions frontend/lib/services/companyRepService.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import 'package:frontend/services/service.dart';
import 'package:frontend/components/deckException.dart';

class CompanyRepService extends Service {
Future<List<CompanyRep>> getCompanyReps(
{String? meeting, String? company, String? name}) async {
Future<List<CompanyRep>> getCompanyReps({String? meeting, String? company, String? name}) async {
var queryParameters = {
'meeting': meeting,
'company': company,
Expand Down

0 comments on commit c8b08cb

Please sign in to comment.