|
1 | 1 | import 'package:example/lib/color_selector.dart';
|
2 |
| -import 'package:flutter/material.dart'; |
3 | 2 | import 'package:flutter_neumorphic/flutter_neumorphic.dart';
|
4 | 3 |
|
5 | 4 | class NeumorphicTextPlayground extends StatefulWidget {
|
@@ -92,7 +91,7 @@ class __PageState extends State<_Page> {
|
92 | 91 | child: RaisedButton(
|
93 | 92 | shape: RoundedRectangleBorder(
|
94 | 93 | borderRadius: BorderRadius.circular(12)),
|
95 |
| - color: Theme.of(context).accentColor, |
| 94 | + color: Theme.of(context).colorScheme.secondary, |
96 | 95 | child: Text(
|
97 | 96 | "back",
|
98 | 97 | style: TextStyle(color: Colors.white),
|
@@ -125,7 +124,7 @@ class __PageState extends State<_Page> {
|
125 | 124 | int selectedConfiguratorIndex = 0;
|
126 | 125 |
|
127 | 126 | Widget _configurators() {
|
128 |
| - final Color buttonActiveColor = Theme.of(context).accentColor; |
| 127 | + final Color buttonActiveColor = Theme.of(context).colorScheme.secondary; |
129 | 128 | final Color buttonInnactiveColor = Colors.white;
|
130 | 129 |
|
131 | 130 | final Color textActiveColor = Colors.white;
|
@@ -238,7 +237,7 @@ class __PageState extends State<_Page> {
|
238 | 237 | }
|
239 | 238 |
|
240 | 239 | Widget shapeWidget() {
|
241 |
| - final Color buttonActiveColor = Theme.of(context).accentColor; |
| 240 | + final Color buttonActiveColor = Theme.of(context).colorScheme.secondary; |
242 | 241 | final Color buttonInnactiveColor = Colors.white;
|
243 | 242 |
|
244 | 243 | final Color iconActiveColor = Colors.white;
|
@@ -444,7 +443,7 @@ class __PageState extends State<_Page> {
|
444 | 443 | }
|
445 | 444 |
|
446 | 445 | FontWeight _fontWeight() {
|
447 |
| - switch ((this.fontWeight / 100).toInt()) { |
| 446 | + switch (this.fontWeight ~/ 100) { |
448 | 447 | case 1:
|
449 | 448 | return FontWeight.w100;
|
450 | 449 | case 2:
|
|
0 commit comments