Search
 
SCRIPT & CODE EXAMPLE
 

DART

flutter rounded bottom sheet

 void startAddNewMoodCheckin(BuildContext ctx) {
    showModalBottomSheet(
        shape: RoundedRectangleBorder(		//the rounded corner is created here
          borderRadius: BorderRadius.circular(10.0),
        ),
        context: ctx,
        builder: (_) {
          return Container(
            child: Text("This is a modal sheet"),
          );
        });
  }
Comment

Rounded Bottom Sheet Flutter

void _modalBottomSheetMenu(){
        showModalBottomSheet(
            context: context,
            builder: (builder){
              return new Container(
                height: 350.0,
                color: Colors.transparent, //could change this to Color(0xFF737373), 
                           //so you don't have to change MaterialApp canvasColor
                child: new Container(
                    decoration: new BoxDecoration(
                        color: Colors.white,
                        borderRadius: new BorderRadius.only(
                            topLeft: const Radius.circular(10.0),
                            topRight: const Radius.circular(10.0))),
                    child: new Center(
                      child: new Text("This is a modal sheet"),
                    )),
              );
            }
        );
      }
Comment

PREVIOUS NEXT
Code Example
Dart :: dart random number 
Dart :: flutter sleep 
Dart :: How to attach a FloatingActionButton to the AppBar 
Dart :: flutter get millis time 
Dart :: dart string remove first character 
Dart :: flutter keyboard overflow when opens 
Dart :: datetime dart format print 
Dart :: how to give shape to card in flutter 
Dart :: listtile remove padding flutter 
Dart :: italic text flutter 
Dart :: raised button deprecated flutter 
Dart :: flutter return empty widget 
Dart :: flutter get device width 
Dart :: raisedbutton shape flutter 
Dart :: flutter check if key exists 
Dart :: string to double dart 
Dart :: dart random password generator 
Dart :: flutter use png as icon 
Dart :: flutter create app command 
Dart :: flutter column text direction 
Dart :: disable flutter listtile 
Dart :: convert a list to string in flutter 
Dart :: pass function as parameter in flutter 
Dart :: int to string dart 
Dart :: error: xmlhttprequest error. dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 906:28 
Dart :: dart getter 
Dart :: flutter date input field 
Dart :: dart while break 
Dart :: flutter sliverappbar 
Dart :: flutter image load 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =