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

Make it possible to change BottomAppBar's border radius #4322

Open
ndonkoHenri opened this issue Nov 7, 2024 Discussed in #4285 · 0 comments
Open

Make it possible to change BottomAppBar's border radius #4322

ndonkoHenri opened this issue Nov 7, 2024 Discussed in #4285 · 0 comments
Labels
feature request Suggestion/Request for additional feature

Comments

@ndonkoHenri
Copy link
Collaborator

Implement ClipRRect

Working Flutter Example

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: HomeScreen(),
    );
  }
}

class HomeScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Text("Content goes here"),
      ),
      bottomNavigationBar: ClipRRect(
        borderRadius: BorderRadius.only(
          topLeft: Radius.circular(30),
          topRight: Radius.circular(30),
        ),
        child: BottomAppBar(
          color: Colors.blue,
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            children: <Widget>[
              IconButton(
                icon: Icon(Icons.home, color: Colors.white),
                onPressed: () {},
              ),
            ],
          ),
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {},
        child: Icon(Icons.add),
      ),
    );
  }
}

Discussed in #4285
@ndonkoHenri ndonkoHenri added the feature request Suggestion/Request for additional feature label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Suggestion/Request for additional feature
Projects
None yet
Development

No branches or pull requests

1 participant