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

                      SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                      은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현