skip to Main Content

flutter camera not reinitializing on iOS

I need to use camera in two screens when one screen push another screen. In that case the camera shows black screen when I go back from second widget: import 'dart:async'; import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; List<CameraDescription> cameras = []; late…

VIEW QUESTION

Ios swift – How to change the background color of TextEditor like TextFeild

struct TextView: View { @State private var textInput2: String = "" var body: some View { ScrollView{ VStack(spacing: 24){ TextField("", text: $textInput2) .font(.body) .foregroundColor(.gray) .padding() .frame(height: 142) .background(Color("3")) .cornerRadius(20) .overlay( RoundedRectangle(cornerRadius: 20) .stroke(Color.gray.opacity(0.5), lineWidth: 2) ) TextEditor(text: $textInput2) .textFieldStyle(PlainTextFieldStyle()) .font(.body)…

VIEW QUESTION
Back To Top
Search