[FIXED] flutter container border radius not working

Поділитися
Вставка
  • Опубліковано 7 вер 2024
  • In this video, you will learn how to apply border radius correctly to the child of a container widget. Whenever you display and image widget inside a container widget with border radius applied in container's box decoration, you will found out the the border radius does not reflect in the image widget. This is because the image widget is not clipped to the container while box decoration paints. The solution is to wrap the container widget with ClipRRect widget. Watch the video for more implementation details !
    Subscribe to our channel 👉 shorturl.at/uCET4
    If you enjoyed this video be sure to give it a like and subscribe for more!
    ChatGPT: Here's how to get a job at Google, Meta, Tesla ...
    • 5 Tips to get a job at...
    ChatGPT generates NFTs ! New Passive Income With ChatGPT !
    • How to generate images...
    I Lost $XXX after OpenAI's Secret Key LEAKED !!
    • I Lost $XXX after Open...
    Web Scraping using ChatGPT | Coded by ChatGPT
    • How to create a Web Sc...
    Flutter ChatGPT using OpenAI's GPT-3 | Flutter Chatbot
    • Flutter ChatGPT using ...
    How to Manage State Using Flutter GetX | Flutter State Management • GetX State Management ...
    How to Manage State Using Flutter Provider | Flutter State Management • Flutter Provider State...
    How to Solve Vertical viewport was given unbounded height | Flutter Common Error
    • How to Solve Vertical ...
    Installation & Configuration | Flutter Firebase Tutorial #1
    • Installation & Configu...
    Firebase RealTime Database (CRUD) | Flutter Firebase Tutorial #3
    • Firebase RealTime Data...
    How To Create A Flutter Table Calendar In Just 5 Minutes!
    • How To Create A Flutte...
    Dropdown in Flutter for creating flexible, reusable user interfaces
    • Dropdown in Flutter fo...
    Object-oriented Programming in Dart
    • OOP Tutorials
    Flutter Project Ideas
    • Flutter Project Ideas
    Flutter Package Tutorials
    • Flutter Package Tutorials
    #fluttertutorialforbeginners

КОМЕНТАРІ • 3

  • @cncm-official
    @cncm-official Місяць тому +1

    Bro, Please Clarify my doubts
    By default serverpod make id as a primary key, and only id can connect with other table (foreign key)
    1) how to refer my custom field as a primary key, my custom field datatype is string.
    2) how to make relation between other tables with my custom field
    Over all doubt is working with private key & foreign key in serverpod, not only using int.

    • @AIWithFlutter
      @AIWithFlutter  Місяць тому

      Hi 👋,
      1) To set a custom field as a primary key, you can use @primaryKey annotation.
      Example:
      class MyTable extends TableRow {
      @primaryKey
      late final String your_custom_field;
      // other fields …
      }
      2) Serverpod doesn’t directly support foreign key constraints in the ORM. However you can manually create relations between tables by matching the custom primary key field.
      Example :
      class OtherTable extends TableRow {
      late final String myTableId;
      // other fields …
      // Method to get the related MyTable object
      Future getMyTable(Session session) async {
      Return await session.findById(myTableId);
      }
      }

    • @cncm-official
      @cncm-official Місяць тому

      @@AIWithFlutter can you make a video about this?