In addition to what has already been posted for general interest.
The Union Jack has that nickname because King James VI & I after his ascension to the English Throne made it the Jack for his warships in both the Royal Navy and the Royal Scottish Navy. That was a century before it became a national flag at the time of the Act of Union.
English Red Ensign from the mid 1500's to 1707
Scottish Red Ensign from the early 1600's to 1707
British Red Ensign 1707 - 1801
The canton of the above was the Royal Scottish Navy Jack 1603 - 1707 and the Royal Navy Jack 1603 - 1801.
By the way under the Navigation Acts Scotland was a foreign country, and at the time of the Act of Union the Scots were quite anxious to have access to the English Colonies.