Rounded corner Card Widget with right border in flutterHow do I add a border to a widget, in Flutter?Building a card widget [Flutter]Flutter Cards - How to Loop a card widgets in FlutterHow to offset a scaffold widget in Flutter?Adding Card to ListViewRounded Corners Image in FlutterFlutter: How can I select an image icon in a list without all icons in the list being selected?Is this the best choice of flutter widgets to get the ListView I have in mind & in the diagram attached?Pass data to another screen when Gridview item is clickedRound corners of WebView widget

Good examples of "two is easy, three is hard" in computational sciences

At what point can a confirmation be established between words of similar meaning in context?

Cycling to work - 30mile return

Have GoT's showrunners reacted to the poor reception of the final season?

Working hours and productivity expectations for game artists and programmers

When did Britain learn about the American Declaration of Independence?

Alternative classical explanation of the Stern-Gerlach Experiment?

FIFO data structure in pure C

How can sister protect herself from impulse purchases with a credit card?

Is it a good idea to teach algorithm courses using pseudocode instead of a real programming language?

Is my company merging branches wrong?

How to say "that" as in "the cow that ate" in Japanese?

Why does the setuid bit work inconsistently?

Save my secrets!

Hotel booking: Why is Agoda much cheaper than booking.com?

What's is the easiest way to purchase a stock and hold it

How come Arya Stark wasn't hurt by this in Game of Thrones Season 8 Episode 5?

What were the "pills" that were added to solid waste in Apollo 7?

Parse a C++14 integer literal

How do you cope with rejection?

Is my homebrew Awakened Bear race balanced?

Driving a school bus in the USA

Is it possible to determine from only a photo of a cityscape whether it was taken close with wide angle or from a distance with zoom?

Is there a language that let's you use a try block without a catch block?



Rounded corner Card Widget with right border in flutter


How do I add a border to a widget, in Flutter?Building a card widget [Flutter]Flutter Cards - How to Loop a card widgets in FlutterHow to offset a scaffold widget in Flutter?Adding Card to ListViewRounded Corners Image in FlutterFlutter: How can I select an image icon in a list without all icons in the list being selected?Is this the best choice of flutter widgets to get the ListView I have in mind & in the diagram attached?Pass data to another screen when Gridview item is clickedRound corners of WebView widget






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








4















I have to create a Card like this, I had written below code to achieve the desired UI, but it didn't work as expected,



Card(
elevation: 5,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
bottomRight: Radius.circular(10),
topRight: Radius.circular(10)),
side: BorderSide(width: 5, color: Colors.green)),
child: ListTile(),
)



the above code produced this, whereas using below code



Card(
elevation: 5,
shape: Border(right: BorderSide(color: Colors.red, width: 5)),
child: ListTile(),
)


generated this output. How can I create the required UI in flutter?










share|improve this question






















  • Maybe you can try wrapping your card with ClipOval

    – mirkancal
    Mar 23 at 18:16

















4















I have to create a Card like this, I had written below code to achieve the desired UI, but it didn't work as expected,



Card(
elevation: 5,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
bottomRight: Radius.circular(10),
topRight: Radius.circular(10)),
side: BorderSide(width: 5, color: Colors.green)),
child: ListTile(),
)



the above code produced this, whereas using below code



Card(
elevation: 5,
shape: Border(right: BorderSide(color: Colors.red, width: 5)),
child: ListTile(),
)


generated this output. How can I create the required UI in flutter?










share|improve this question






















  • Maybe you can try wrapping your card with ClipOval

    – mirkancal
    Mar 23 at 18:16













4












4








4


1






I have to create a Card like this, I had written below code to achieve the desired UI, but it didn't work as expected,



Card(
elevation: 5,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
bottomRight: Radius.circular(10),
topRight: Radius.circular(10)),
side: BorderSide(width: 5, color: Colors.green)),
child: ListTile(),
)



the above code produced this, whereas using below code



Card(
elevation: 5,
shape: Border(right: BorderSide(color: Colors.red, width: 5)),
child: ListTile(),
)


generated this output. How can I create the required UI in flutter?










share|improve this question














I have to create a Card like this, I had written below code to achieve the desired UI, but it didn't work as expected,



Card(
elevation: 5,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
bottomRight: Radius.circular(10),
topRight: Radius.circular(10)),
side: BorderSide(width: 5, color: Colors.green)),
child: ListTile(),
)



the above code produced this, whereas using below code



Card(
elevation: 5,
shape: Border(right: BorderSide(color: Colors.red, width: 5)),
child: ListTile(),
)


generated this output. How can I create the required UI in flutter?







dart flutter






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 23 at 17:36









David BronnDavid Bronn

613




613












  • Maybe you can try wrapping your card with ClipOval

    – mirkancal
    Mar 23 at 18:16

















  • Maybe you can try wrapping your card with ClipOval

    – mirkancal
    Mar 23 at 18:16
















Maybe you can try wrapping your card with ClipOval

– mirkancal
Mar 23 at 18:16





Maybe you can try wrapping your card with ClipOval

– mirkancal
Mar 23 at 18:16












2 Answers
2






active

oldest

votes


















4














I have used ClipPath to achieve the UI asked in the question, check out the below code.



Card(
elevation: 2,
child: ClipPath(
child: Container(
height: 100,
decoration: BoxDecoration(
border: Border(right: BorderSide(color: Colors.green, width: 5))),
),
clipper: ShapeBorderClipper(shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(3))),
),
)


This gives the below output,
enter image description here



If there is a better way to achieve said result kindly do answer.






share|improve this answer






























    1














    You should place your Card inside a ClipRRect widget :



     return ClipRRect(
    borderRadius: BorderRadius.circular(15.0),
    child: Card(
    elevation: 5,
    shape: Border(right: BorderSide(color: Colors.red, width: 5)),
    child: ListTile(),
    ),
    );


    But I advise you to reduce the value of elevation because it is distorting the small circular borders.






    share|improve this answer























      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "1"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55316539%2frounded-corner-card-widget-with-right-border-in-flutter%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      4














      I have used ClipPath to achieve the UI asked in the question, check out the below code.



      Card(
      elevation: 2,
      child: ClipPath(
      child: Container(
      height: 100,
      decoration: BoxDecoration(
      border: Border(right: BorderSide(color: Colors.green, width: 5))),
      ),
      clipper: ShapeBorderClipper(shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(3))),
      ),
      )


      This gives the below output,
      enter image description here



      If there is a better way to achieve said result kindly do answer.






      share|improve this answer



























        4














        I have used ClipPath to achieve the UI asked in the question, check out the below code.



        Card(
        elevation: 2,
        child: ClipPath(
        child: Container(
        height: 100,
        decoration: BoxDecoration(
        border: Border(right: BorderSide(color: Colors.green, width: 5))),
        ),
        clipper: ShapeBorderClipper(shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(3))),
        ),
        )


        This gives the below output,
        enter image description here



        If there is a better way to achieve said result kindly do answer.






        share|improve this answer

























          4












          4








          4







          I have used ClipPath to achieve the UI asked in the question, check out the below code.



          Card(
          elevation: 2,
          child: ClipPath(
          child: Container(
          height: 100,
          decoration: BoxDecoration(
          border: Border(right: BorderSide(color: Colors.green, width: 5))),
          ),
          clipper: ShapeBorderClipper(shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(3))),
          ),
          )


          This gives the below output,
          enter image description here



          If there is a better way to achieve said result kindly do answer.






          share|improve this answer













          I have used ClipPath to achieve the UI asked in the question, check out the below code.



          Card(
          elevation: 2,
          child: ClipPath(
          child: Container(
          height: 100,
          decoration: BoxDecoration(
          border: Border(right: BorderSide(color: Colors.green, width: 5))),
          ),
          clipper: ShapeBorderClipper(shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(3))),
          ),
          )


          This gives the below output,
          enter image description here



          If there is a better way to achieve said result kindly do answer.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 23 at 19:53









          David BronnDavid Bronn

          613




          613























              1














              You should place your Card inside a ClipRRect widget :



               return ClipRRect(
              borderRadius: BorderRadius.circular(15.0),
              child: Card(
              elevation: 5,
              shape: Border(right: BorderSide(color: Colors.red, width: 5)),
              child: ListTile(),
              ),
              );


              But I advise you to reduce the value of elevation because it is distorting the small circular borders.






              share|improve this answer



























                1














                You should place your Card inside a ClipRRect widget :



                 return ClipRRect(
                borderRadius: BorderRadius.circular(15.0),
                child: Card(
                elevation: 5,
                shape: Border(right: BorderSide(color: Colors.red, width: 5)),
                child: ListTile(),
                ),
                );


                But I advise you to reduce the value of elevation because it is distorting the small circular borders.






                share|improve this answer

























                  1












                  1








                  1







                  You should place your Card inside a ClipRRect widget :



                   return ClipRRect(
                  borderRadius: BorderRadius.circular(15.0),
                  child: Card(
                  elevation: 5,
                  shape: Border(right: BorderSide(color: Colors.red, width: 5)),
                  child: ListTile(),
                  ),
                  );


                  But I advise you to reduce the value of elevation because it is distorting the small circular borders.






                  share|improve this answer













                  You should place your Card inside a ClipRRect widget :



                   return ClipRRect(
                  borderRadius: BorderRadius.circular(15.0),
                  child: Card(
                  elevation: 5,
                  shape: Border(right: BorderSide(color: Colors.red, width: 5)),
                  child: ListTile(),
                  ),
                  );


                  But I advise you to reduce the value of elevation because it is distorting the small circular borders.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 23 at 18:16









                  Mazin IbrahimMazin Ibrahim

                  1,6972817




                  1,6972817



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55316539%2frounded-corner-card-widget-with-right-border-in-flutter%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                      Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                      Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript