I am a Flutter developer, and it's documentation code samples are licensed under BSD-3, does that mean when learning from it and then applying that to my code I should include the license in my code (and how would I do that), or only when copying substantial blocks from the documentation into my code (which I do not do, I only read documentation to get a sense on how I should use the API), The way I do it right now is by showing all licenses in the form of text of every package I use, and give the option to display it in my UI, including Flutter's BSD-3 notice, using a ready-made function, does that cover it

1 Answer 1


BSD-3 is a permissive license, which means that as long as you provide attribution to the original authors and as long as you provide the license language you can freely use it in your project.

We are looking here at several different levels of use of the code from the documentation. Learning -- copying insignificant parts -- copying substantial blocks

The basic legal framework for software licenses is the copyright. So when you just learn from other code, but you don't copy it, then the licenses do not have any impact on what you are doing.

In order for copyright to apply, the text/code must exceed the threshold of originality. And here starts the grey zone, because this is not easy to determine, and it is not the same in all jurisdictions. If you are just copying simple no-brainer lines of trivial code, which everybody more or less does in the same way, then this code might not meet the threshold of originality, and you can use it without attribution and respecting the license terms. But again, this is a grey zone.

As soon as you are copying substantial blocks you will be above the threshold of originality and copyright applies, that means you have to have to fulfill the terms required by the license.

With the 3-Clause BSD License it is easy to comply with the terms

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

You do not need to put the license and copyright notice into the UI, it is sufficient to provide it (in a .txt or .md file) with the code you distribute. It is good practice to have these files in the top-level folder of the distributed files. If you want to have something in the UI, then please do that in addition to the plain text files.

  • Thank you for your response, I really appreciate it, I have another question if you may, What does "Redistribution" imply: for example, is sharing the code with a client considered Redistribution, or Sharing the code inside a company, or it only means sharing the code publically, thanks again Feb 27, 2023 at 14:02
  • 2
    Sharing with anyone who is not legally you. IF 'you' is the company, then inside may not be sharing. But any client or other entity always is a 3rd party, regardless whether confidentiality or any contract at all is agreed upon or not Feb 28, 2023 at 8:54
  • Thank you for your help, I appreciate it Mar 1, 2023 at 0:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.