Both are atrial arrhythmias.
They often occur in the same person, sometimes moments apart. In fib, the atrial electrical activity is completely disorganized. In flutter, the atrial rate is usually 300. In untreated fib, the ventricular rate is usually 160-200. In flutter, the vr is usually 150.