コード例 #1
0
 public CupertinoThemeData(
     Brightness?brightness            = null,
     Color primaryColor               = null,
     Color primaryContrastingColor    = null,
     CupertinoTextThemeData textTheme = null,
     Color barBackgroundColor         = null,
     Color scaffoldBackgroundColor    = null,
     _CupertinoThemeDefaults defaults = null
     )
 {
     this.brightness          = brightness;// ?? Brightness.light;
     _primaryColor            = primaryColor;
     _primaryContrastingColor = primaryContrastingColor;
     _textTheme               = textTheme;
     _barBackgroundColor      = barBackgroundColor;
     _scaffoldBackgroundColor = scaffoldBackgroundColor;
     _defaults = defaults ?? CupertinoThemeDataUtils._kDefaultTheme;
 }
コード例 #2
0
        public static CupertinoThemeData _rawWithDefaults(
            Brightness?brightness,
            Color primaryColor,
            Color primaryContrastingColor,
            CupertinoTextThemeData textTheme,
            Color barBackgroundColor,
            Color scaffoldBackgroundColor,
            _CupertinoThemeDefaults defaults
            )
        {
            var themeData = new CupertinoThemeData(
                brightness: brightness,
                primaryColor: primaryColor,
                primaryContrastingColor: primaryContrastingColor,
                textTheme: textTheme,
                barBackgroundColor: barBackgroundColor,
                scaffoldBackgroundColor: scaffoldBackgroundColor,
                defaults);

            return(themeData);
        }