Skip to content

fix: Problem with using FatSecterNutrition using flutter 1.0.0 #16

Description

@njmo

I'm trying to use Basic plan and I'm getting null response from the app

  final fatSecret = FatSecretNutrition(
    clientId: 'Consumer Key',
    clientSecret: 'Consumer Secret ',
    tokenUrl: 'https://oauth.fatsecret.com/connect/token',
    apiUrl: 'https://platform.fatsecret.com/rest/server.api',
  );

  final suggestions = await fatSecret.autoComplete(
    const FoodAutoCompleteV2Props(
      expression: 'apple',
    ),
  );
  print(suggestions);

and suggestions is null

Expected Behavior

Should return something else than null

I'm using flutter 1.0.0 and fatsecret_nutrition 0.1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions