Pass controller to libraries insteadof Dartwork instance