示例#1
0
        public override bool updateShouldNotify(InheritedWidget old)
        {
            _TabControllerScope _old = (_TabControllerScope)old;

            return(enabled != _old.enabled ||
                   controller != _old.controller);
        }
示例#2
0
        public static TabController of(BuildContext context)
        {
            _TabControllerScope scope =
                (_TabControllerScope)context.inheritFromWidgetOfExactType(typeof(_TabControllerScope));

            return(scope?.controller);
        }
示例#3
0
        public static TabController of(BuildContext context)
        {
            _TabControllerScope scope = context.dependOnInheritedWidgetOfExactType <_TabControllerScope>();

            return(scope?.controller);
        }