Let's treat $K=\Bbb Q$ first. It's well-known that $\Bbb A_{\Bbb Q}\cong (\Bbb Q \otimes_{\Bbb Z}\widehat{\Bbb Z}) \times \Bbb R$. We can just focus on $\Bbb Q \otimes_{\Bbb Z}\widehat{\Bbb Z}$ for the dimension. I'll take for granted the fact that $\widehat{\Bbb Z}$ has infinite Krull dimension.
Consider the terminal morphism $\mathrm{Spec}(\widehat{\Bbb Z}) \to \mathrm{Spec}(\Bbb Z)$. We can decompose $\mathrm{Spec}(\widehat{\Bbb Z})$ as a set (not as a space) as the disjoint union of the fibers of this morphism:
$\mathrm{Spec}(\widehat{\Bbb Z})=\mathrm{Spec}(\Bbb Q \otimes \widehat{\Bbb Z})\sqcup \bigsqcup_p \mathrm{Spec}(\Bbb F_p \otimes_{\Bbb Z} \widehat{\Bbb Z})$
Now $\Bbb F_p \otimes_{\Bbb Z} \widehat{\Bbb Z}\cong \Bbb F_p$, so for each $p$, the fiber $\mathrm{Spec}(\Bbb F_p \otimes_{\Bbb Z} \widehat{\Bbb Z})$ is just a point, which is closed because $(p) \in \mathrm{Spec}(\Bbb Z)$ is closed. We can also think of $\Bbb Q \otimes_{\Bbb Z} \widehat{\Bbb Z}$ as the the localization $S^{-1}\widehat{\Bbb Z}$, where $S=\Bbb N$. This implies a canonical homeomorphism: $$\mathrm{Spec}(\Bbb Q \otimes_{\Bbb Z} \widehat{\Bbb Z})\cong\{\mathfrak{p} \in \mathrm{Spec}(\widehat{\Bbb Z}) \mid S \cap \mathfrak{p} = \varnothing\}$$
To say that $\widehat{\Bbb Z}$ has infinite Krull dimension is to say that for every $n$, there's a prime ideal in $\widehat{\Bbb Z}$ of height at least $n$. Fix $n \in \Bbb N$ and take a prime ideal $\mathfrak{q}$ of height at least $n+1$, so that we obtain a chain of prime ideals $\mathfrak{p}_0 \subsetneq \ldots \subsetneq \mathfrak{p}_n \subsetneq \mathfrak{q}$. Clearly it is impossible in this situation that $\mathfrak{p}_i$ is maximal for any $i$. But as we have seen before, the complement of $\mathrm{Spec}(\Bbb Q \otimes \widehat{\Bbb Z})$ inside $\mathrm{Spec}(\Bbb Z)$ consists of closed points.
From a standard lemma about prime ideals in localizations, this means that the chain $\mathfrak{p}_0 \subsetneq \ldots \subsetneq \mathfrak{p}_n$ gives rise to a chain $S^{-1}\mathfrak{p}_0 \subsetneq \ldots \subsetneq S^{-1}\mathfrak{p}_n$ of prime ideals in $S^{-1}\widehat{\Bbb Z}=\Bbb Q \otimes_{\Bbb Z} \widehat{\Bbb Z}$. As $n$ was arbitrary, this implies that $\Bbb Q\otimes_{\Bbb Z} \widehat{\Bbb Z}$ has infinite Krull dimension.
For a general number field $K$, note that $\Bbb Q\hookrightarrow K$ is an integral morphism and $\Bbb Z \to \widehat{\Bbb Z}$ is flat, so that $\Bbb Q \otimes_{\Bbb Z} \widehat{\Bbb Z} \hookrightarrow K \otimes_{\Bbb Z} \widehat{\Bbb Z}$ defines an integral extension of rings. Any integral extension of rings preserves the Krull dimension. $\Bbb A_K$ is a direct product of $K \otimes_{\Bbb Z}\widehat{\Bbb Z}$ with a finite number of fields. Thus $\Bbb A_K$ has infinite Krull dimension.
$$\mathbf{A}{k,S}:=\left{(x_v):x_v\in \mathcal{O}{k_v}\text{ for }v\notin S\right}\cong \prod_{v\in S}k_v\times \prod_{v\notin s}\mathcal{O}_{k_v}$$
then
$$\mathbf{A}k=\varinjlim_S \mathbf{A}{k,S}$$
as topological rings. In particular, we deduce that
$$\mathrm{Spec}(\mathbf{A}k)=\varprojlim \mathrm{Spec}(\mathbf{A}{k,s})$$
Now the transition maps are open embeddings (I think?) and the pices are all
– Alex Youcis Dec 12 '19 at 15:32