Widget.create returns a function to build widget instance