Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed deprecated FlatButtons #193

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}

configurations.all {
resolutionStrategy {
force 'com.android.support:support-v4:27.1.0'
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,18 @@ class _FloatingBoxBottomSheet extends StatelessWidget {
fontWeight: FontWeight.bold),
),
),
FlatButton(
TextButton(
onPressed: () =>
model.response(completer, textFieldController1.text),
child: Text(
request.mainButtonTitle!,
style: TextStyle(
color: Colors.white, fontWeight: FontWeight.bold),
),
color: Theme.of(context).primaryColor,
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
Theme.of(context).primaryColor,
)),
)
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,16 @@ class ConfirmBottomSheetView extends StatelessWidget {
),
),
// ignore: deprecated_member_use
FlatButton(
TextButton(
onPressed: () => completer(SheetResponse(confirmed: true)),
child: Text(
request.mainButtonTitle!,
style: TextStyle(color: Colors.white),
),
color: Theme.of(context).primaryColor,
style: ButtonStyle(
backgroundColor:
MaterialStateProperty.all(Theme.of(context).primaryColor),
),
)
],
)
Expand Down
Loading