获取当前主题颜色 Flutter

通过context获取当前主题颜色
 
Theme.of(context).accentColor
原文地址:https://www.cnblogs.com/z45281625/p/10796621.html