[core][fix] Text widget extends AbstractWidget instead of Widget